While we're on the subject of the transfer files and making changes, I had an idea the other month about making it easier to teach apertium transfer: make the "attributes" and "variables" sections optional.
There are attributes defined by default -- so in the simplest case of reordering the section is not necessary. http://wiki.apertium.org/wiki/A_long_introduction_to_transfer_rules#Overview_of_a_transfer_file Really, we could reduce this to: <?xml version="1.0" encoding="utf-8"?> <transfer> <section-def-cats> <def-cat n="some_word_category"> <cat-item tags="mytag.*"/> </def-cat> </section-def-cats> <section-rules> <rule> <pattern> <pattern-item n="some_word_category"/> <pattern-item n="some_word_category"/> </pattern> <action> <out> <lu><clip pos="2" side="tl" part="whole"/></lu> <b pos="1"/> <lu><clip pos="1" side="tl" part="whole"/></lu> </out> </action> </rule> </section-rules> </transfer> There are several attributes defined by default (whole, tags, lem), so the section isn't really mandatory from a compilation/XML point of view. This way it isn't necessary to explain everything right at the beginning... Fran ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Apertium-stuff mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/apertium-stuff
