Skip to content

Commit

Permalink
Use symbolic Unicode names
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarring committed Oct 2, 2024
1 parent dfe4f27 commit fe4ab94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ use Text::FriBidi::Lines;
use Test;
plan 1;

constant $LRO = 0x202D.chr;
constant $RLO = 0x202E.chr;
constant $PDF = 0x202C.chr;
constant $LRO = "\c[LEFT-TO-RIGHT OVERRIDE]";
constant $RLO = "\c[RIGHT-TO-LEFT OVERRIDE]";
constant $PDF = "\c[POP DIRECTIONAL FORMATTING]";

@lines = "Left", "{$RLO}Right{$PDF}", "{$LRO}left{$PDF}";
my Text::FriBidi::Lines $para .= new: :@lines;
Expand Down
6 changes: 3 additions & 3 deletions t/bidi-lines.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ plan 4;

use Text::FriBidi::Lines;

constant $LRO = 0x202D.chr;
constant $RLO = 0x202E.chr;
constant $PDF = 0x202C.chr;
constant $LRO = "\c[LEFT-TO-RIGHT OVERRIDE]";
constant $RLO = "\c[RIGHT-TO-LEFT OVERRIDE]";
constant $PDF = "\c[POP DIRECTIONAL FORMATTING]";

my @lines = "Left", "Right", "left";
my Text::FriBidi::Lines $bidi .= new: :@lines;
Expand Down

0 comments on commit fe4ab94

Please sign in to comment.