El dc 19 de 12 de 2012 a les 13:22 +0100, en/na Per Tunedal va escriure:
> Hi,
> I just noticed something that puzzles me: in the pair Swedish-Danish
> (sv-da) I've found some units among "Punctuations" in pardefs:
> 
>    <!-- Punctuation -->
> 
> <pardef n="numeros">
>   <e>       <re>[0-9]+([.,][0-9]+)?(%)?</re><p><l></l><r><s
>   n="num"/></r></p></e>
>   <e>       <re>[0-9]+([.,][0-9]+)?</re><p><l><b/>mm</l><r><b/>mm<s
>   n="num"/></r></p></e>
>   <e>       <re>[0-9]+([.,][0-9]+)?</re><p><l><b/>cm</l><r><b/>cm<s
>   n="num"/></r></p></e>
>   <e>       <re>[0-9]+([.,][0-9]+)?</re><p><l><b/>km</l><r><b/>km<s
>   n="num"/></r></p></e>
> 
> How is this used? I cannot find any corresponding entries anywhere else
> in the monodix.
> 
> I intended to add units under abbreviations. Should I add them as
> pardef:s instead?

This is to match numbers followed by units. e.g.

9 km 

would come out as 

^9 km/9 km<num>$

This may be what you want, or it may not.

Fran


------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to