Module: Ucode::Coordinator::Enrichment::Display
- Defined in:
- lib/ucode/coordinator/enrichment/display.rb
Overview
Display layout properties: Line Break class, East Asian Width, Vertical Orientation. All three are range+value files, looked up via bsearch on sorted arrays of ExtractedProperties::Tuple.
Class Method Summary collapse
Class Method Details
.enrich(cp, indices) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/ucode/coordinator/enrichment/display.rb', line 11 def enrich(cp, indices) lb = lookup_value(cp, indices.line_break) eaw = lookup_value(cp, indices.east_asian_width) vo = lookup_value(cp, indices.vertical_orientation) return if lb.nil? && eaw.nil? && vo.nil? cp.display ||= Ucode::Models::CodePoint::Display.new apply_values(cp.display, lb, eaw, vo) end |