bugGNU gettext - Bugs: bug #56519, Ship/Install ITS schemas with...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #56519: Ship/Install ITS schemas with gettext

Submitter:  Martin Blanchard <tchaik>
Submitted:  Tue 18 Jun 2019 07:58:22 PM UTC
   
 
Category:  Translator tools Severity:  3 - Normal
Item Group:  None Status:  Not a Bug
Privacy:  Public Assigned to:  haible
Open/Closed:  Closed

Mon 30 Sep 2024 08:21:32 PM UTC, comment #4: 

Also, quoting Daiki's original plan, from https://mail.gnome.org/archives/desktop-devel-list/2015-October/msg00013.html :
"gettext itself will ship some [*.its files] by default.
This is merely for compatibility reasons, and it would be nicer if those
files are maintained in the relevant "upstream" projects."

Bruno Haible <haible>
Group administrator
Sun 29 Sep 2024 04:10:30 PM UTC, comment #3: 


> ITS rules are XML file themselves. Considering that third-parties are expected to provide these XML files and that gettext will later parse them, I think it would make sense for gettext to ship schemas for the ITS format version it is expecting to find.


I don't think this is adequate.

Your request is a bit like asking that GCC should ship the .h files of all possible libraries, because GCC will "need to parse them".

GNU gettext should not get into a distributor's business.

In Ubuntu, I see in /usr/share/gettext/its/ files such as
- shared-mime-info.its, shared-mime-info.loc (installed as part of package shared-mime-info),
- polkit.its, polkit.loc (installed as part of package polkitd).
This is how it should be done: The distro is responsible for linking different packages together in a way that they work fine together.

Bruno Haible <haible>
Group administrator
Sun 29 Sep 2024 04:04:45 PM UTC, comment #2: 

Martin Blanchard wrote:

> I think it would make sense for gettext to ship schemas for the ITS format version it is expecting to find.


Daiki Ueno wrote:

> the original W3C schemas are covered by https://www.w3.org/Consortium/Legal/2015/doc-license which retains the copyright


... and forbids modification.

So, we cannot redistribute the schema from the W3C, because
1. it is not Free Software,
2. we are unable to modify it in such a way that it matches what gettext's its.c code does.

Instead, I reversed-engineered its.c and created a XML schema from that. And likewise for locating-rules.c.

Implemented through https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commitdiff;h=2ba96bb87e6d106cf67d01431c8586ff3486b835

Bruno Haible <haible>
Group administrator
Sun 10 May 2020 07:51:28 AM UTC, comment #1: 

I agree that it would be nice if there is a canonical package that installs those schemas on the system. On Fedora, other packages install their own schema files under /usr/share/xml/*, so we could follow that convention.

A few concerns are:
- the original W3C schemas are covered by https://www.w3.org/Consortium/Legal/2015/doc-license which retains the copyright
- the schemas might need modification as we extend the standard by adding more vocabularies:
  https://www.gnu.org/software/gettext/manual/html_node/Preparing-ITS-Rules.html#Preparing-ITS-Rules

Daiki Ueno <ueno>
Group administrator
Tue 18 Jun 2019 07:58:22 PM UTC, original submission:  

It seems like the gettext policy regarding ITS rules is to push for downstream projects to maintain their own (eg. #54819) and that sounds perfectly fair.

ITS rules are XML file themselves. Considering that third-parties are expected to provide these XML files and that gettext will later parse them, I think it would make sense for gettext to ship schemas for the ITS format version it is expecting to find.

The W3C ITS working group is providing NVDL + RELAX NG schemas as part of their test suite [1] [2]. From a third-party point of view, I'd find helpful if gettext was to install these in its data directory (and provide a pkg-config variable pointing at this directory).

[1] https://www.w3.org/TR/its20/#its-schemas
[2] https://github.com/w3c/its-2.0-testsuite/tree/master/its2.0/schema

Martin Blanchard <tchaik>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ueno (Posted a comment)
  • -email is unavailable- added by haible (Updated the item)
  • -email is unavailable- added by tchaik (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-09-29 haible StatusIn Progress Not a Bug
        Open/ClosedOpen Closed
    2024-09-29 haible Assigned toueno haible
    2020-05-10 ueno StatusNone In Progress
    2019-06-18 haible CategoryProgrammer tools Translator tools
        Assigned toNone ueno

    Back to the top

    Powered by Savane 3.14-04e1.
    Corresponding source code