apertium / apertium-br-fr

Apertium translation pair for Breton and French
GNU General Public License v2.0
0 stars 1 forks source link

Switch to new-style transfer ? #6

Closed ygorg closed 1 year ago

ygorg commented 1 year ago

When using modes from this repo using apertium-python the results are weirdly formatted. I think this is linked to new/old style transfer which is dealt with in the apertium CLI in apertium/wblank-mode.cc#L67.

I don't know if the solution is to change modes.xml (apertium-transfer * autobil.bin to lt-proc -b autobil.bin | apertium_transfer *) or to change apertium-python (see https://github.com/ygorg/apertium-python/commit/9fcace1c38c09ee3cb6147e773285771aa851ca4).

# apertium-python
import apertium
apertium.translate('br', 'fr', "P'edon war bont an Naoned")
# '@pa je #/tre @war @an #/ont de  @Naoned@'
# apertium CLI
echo "P'edon war bont an Naoned" | apertium br-fr
# Quand j'étais sur le pont de  Nantes
TinoDidriksen commented 1 year ago

Yes, we should do this for all repos. We can script the conversion and get it done in a single run.

ygorg commented 1 year ago

This modification only concerns the modes.xml files or does it concern other files ?

TinoDidriksen commented 1 year ago

Only modes.xml