> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
> Date: Mon, 06 Sep 2021 10:31:27 +0200
> From: Kevin Brubeck Unhammer <unham...@fsfe.org>
> To: apertium-stuff@lists.sourceforge.net
> Reply-To: apertium-stuff@lists.sourceforge.net
> Subject: [Apertium-stuff] skipping quoted text
>
>
> Hi,
>
> Does anyone have any smart methods for protecting text in quotes? 
> It's certainly possible with a little pre-/postprocessing like
> https://github.com/apertium/apertium/issues/32
> (a bit less safe if your language uses "" instead of «», I suppose
> you could restrict it to only match fairly short quotes), but are there
> better ways to do this? Should it be an option to the apertium script
> itself / apy, or would it be too language-pair specific (and in that
> case, would it make sense to have it *in* the pipeline somehow?)
>
>
I did not do it for quoted text (what I did for mnemonic files is quite
the oposite), but the idea is to write a specific deformatter (and
eventually the corresponding reformatter.

The deformatter will add a [ before the quoted text and ] after it, the
reformatter will take then off.

Some examples in C are here :
https://github.com/apertium/apertium-c-formatters

and the corresponding wiki pages are these one :
https://wiki.apertium.org/wiki/Translating_mnemonic_files
https://wiki.apertium.org/wiki/Translating_man_pages

--------------------------------

Bernard Chardonneau (France)
Phone : [33] 9 88 05 31 06
GSM phone : [33] 6 40 26 67 91

An alternative Apertium translation website :
http://apertiumtrad.tuxfamily.org

Multilingual websites for my free softwares :
http://libremail.free.fr and http://libremail.tuxfamily.org
http://cyloop.tuxfamily.org (mainly translated with Apertium)
http://apertiumtrad.tuxfamily.org

My general website (in french only)
http://bech.free.fr


_______________________________________________
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to