Font Mapping: Font Not Changes

Issue #1097 resolved
Sorfian created an issue

Hi all,

I tried to change the font of a docx document, but it didn't work, font didn't changes

here is what i do 

okf_openxml@arial.fprm file

#v1
fontMappings.0.sourceLocalePattern=
fontMappings.0.targetLocalePattern=
fontMappings.0.sourceFontPattern=
fontMappings.0.targetFont=Arial
fontMappings.number.i=1

sh tikal.sh -x test.docx -fc okf_openxml@arial.fprm -seg config/defaultSegmentation.srx -sl en -tl id

sh tikal.sh -m test.docx.xlf -fc okf_openxml@arial.fprm -ie UTF-8

Am I doing it the wrong way?

Thank you.

Comments (2)

  1. Denis Konovalyenko

    Hi Sorfian,

    Thank you for posting this! The related Wiki section has been improved. Could you please let me know if there is anything you’d rather seen explained in more detail?

    As for your example, you can either go with

    #v1
    fontMappings.0.targetFont=Arial
    fontMappings.number.i=1
    

    or

    #v1
    fontMappings.0.sourceLocalePattern=.*
    fontMappings.0.targetLocalePattern=.*
    fontMappings.0.sourceFontPattern=.*
    fontMappings.0.targetFont=Arial
    fontMappings.number.i=1
    

  2. Log in to comment