Menu

#80 List style type: hebrew

Unstable_(example)
open
nobody
None
1
2015-09-06
2015-09-06
Ariel Morry
No

Not sure if this the place to paste this but I added a new list-style-type (hebrew), maybe there is a better way, I couldnt find one.
tcpdf.php line ~20457:

case 'hebrew': {
$heb_chars = array('a' => 'א', 'b' => 'ב', 'c' => 'ג', 'd' => 'ד', 'e' => 'ה', 'f' => 'ו', 'g' => 'ז', 'h' => 'ח', 'i' => 'ט', 'j' => 'י', 'k' => 'כ', 'l' => 'ל', 'm' => 'מ', 'n' => 'נ', 'o' => 'ס', 'p' => 'ע', 'q' => 'פ', 'r' => 'צ', 's' => 'ק', 't' => 'ר', 'u' => 'ש', 'v' => 'ת', );
$textitem = $heb_chars[chr(97 + $this->listcount[$this->listnum] - 1)];
break;
}

In my case I also needed to change the dot position, not sure if it's a bug or something in my code/html, anyhow, line ~20498:
// print ordered item
if ($this->rtl) {
if ($listtype == 'hebrew') {
$textitem = $textitem.'.';
} else {
$textitem = '.'.$textitem;
}
} else {
$textitem = $textitem.'.aaa';
}

Discussion


Log in to post a comment.

MongoDB Logo MongoDB