petterreinholdtsen / free-culture-lessig

Docbook edition and translations of the book Free Culture by Lawrence Lessig
21 stars 9 forks source link

added script to convert translated —+space with " – " #15

Closed johslarsen closed 9 years ago

johslarsen commented 9 years ago

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