Skip to content

Instantly share code, notes, and snippets.

@agentmilindu
Created October 13, 2018 08:40
Show Gist options
  • Save agentmilindu/9264a871b57d23c56885addb50afdd5c to your computer and use it in GitHub Desktop.
Save agentmilindu/9264a871b57d23c56885addb50afdd5c to your computer and use it in GitHub Desktop.
for paragraph in parser.readDoc():
print(
mapper.toUnicode(
Font(
'si', # Where we canget this part?
paragraph.getFont()
),
paragraph.getText()
)
)
for paragraph in parser.readDoc():
print(
to_unicode(
Font(
paragraph.getFont(),
"sinhala", # Where we canget this part?
filepath="tests/fm_abhaya.yaml" # Where we canget this part?
),
paragraph.getText()
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment