I have created a ruby script to convert all translated instances of — and its surrounding spaces with " – " (or whatever specified by REPLACE_WITH). This scripts handles the cases where the — and its surrounding spaces happens to be split across multiple strings.
To run it:
scripts/translated_emdash_converter.rb < freeculture.nb.po > freeculture.nb.po.endash
I have created a ruby script to convert all translated instances of — and its surrounding spaces with " – " (or whatever specified by REPLACE_WITH). This scripts handles the cases where the — and its surrounding spaces happens to be split across multiple strings.
To run it:
scripts/translated_emdash_converter.rb < freeculture.nb.po > freeculture.nb.po.endash