Class: CSKitStrongs::Formatters::StrongsPlainTextFormatter
- Inherits:
-
CSKit::Formatters::Formatter
- Object
- CSKit::Formatters::Formatter
- CSKitStrongs::Formatters::StrongsPlainTextFormatter
- Defined in:
- lib/cskit-strongs/formatters/strongs_plain_text_formatter.rb
Direct Known Subclasses
Constant Summary collapse
- RLE =
right-to-left embedding
"\u202b"
- PDF =
pop directional formatting
"\u202c"
Instance Method Summary collapse
Instance Method Details
#format_annotation(annotation, text) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/cskit-strongs/formatters/strongs_plain_text_formatter.rb', line 10 def format_annotation(annotation, text) unicode = if StrongsNumber.from_string(annotation.data.strongs_number).hebrew? "#{RLE}#{annotation.data.unicode}#{PDF}" else annotation.data.unicode end "#{text} [#{unicode}]" end |