RTL support
-
Hi, this plugin is great !
to support RTL languages (Persian, Arabic …) I made this changes:1. to solve PDF problems :
- File Name:
inc/class-read-offline-create.php
Line: 276
Change From:'', // $default_font=''
To:is_rtl()?'tahoma': '', // $default_font=''
- File Name:
inc/class-read-offline-create.php
Line: 346
Add:is_rtl()?$pdf->SetDirectionality('rtl'):'';
2. to solve mobi and epub problem :
In the HTML codes, The<body>
should be replaced with<body dir='rtl'>
- File Name:
inc/class-read-offline-create.php
Lines: 64, 156
Change From:<body>
To:<body ' . (is_rtl() ? "dir='rtl'" : "") . '>
- File Name:
inc/class-read-offline-create.php
Lines: 154, 185, 885, 889
Change From:<body>
To:<body ". (is_rtl() ? 'dir=\'rtl\'' : '') . ">
3. solve show name (hint link) in arabic and persian:
- File :
inc/class-read-offline-ux.php
Line: 82
Change From:$post->post_name
To:urldecode($post->post_name)
I used the is_rtl() function. read more about it:
https://codex.www.ads-software.com/Function_Reference/is_rtl
so this changes could be included in main plugin svn,May you do it please?
thank you ??
- File Name:
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘RTL support’ is closed to new replies.