21
black_beard
Re: News 1.67 Final released for XOOPS 2.5.5

I will put everyone agrees

Quote:

But i think it is better to define that _RTL in xoops and then remove Frameworks/tcpdf/config/lang/*.php


The idea is attractive but TCPDF is natively designed for UTF-8. All these files are in UTF-8. TCPDF manages and displays the ISO charset automatically.

Global.php file can be in UTF-8 but also by ISO. The fact inject ISO files in the configuration of TCPDF disturbs the automatic detection and causes display bugs (we return to the original problem)

Quote:

Also one thing that i forgot.
It can not read the [en] [/en] and [fa] [/fa] codes.
I mean when the website is english it just should makepdf from english content and vice verse.


this is a problem that I noticed. TCPDF does not detect the change of language natively. I plan to add this feature in the next version of tcpdf_for_xoops.

Quote:

Black_beard, whatever you choose, I hope that it will reflect the structure of TCPDF files, i.e. if the next version of TCPDF comes out, we only need to copy the selected files to the /Frameworks/tcpdf directory, and we are done, i.e. we don't have to make any changes to any files, and we don't have to change directories.


Compared to the original version of TCPDF, I modified some files to fit Xoops.
- Files in the directory. / Tcpdf / config / lang / have been renamed. This poses no problem, they are rarely changed.
- I have lightened the class files, history of weight divided by 2 (by some 3). One can easily recover the original files but they are bigger Lots.
- The file "tcpdf_config.php" is the only one where it will make adaptation (but it is rarely changed)

Optimization is my priority. The choices I made in adapting the code I was allowed to reduce memory consumption by 56% and reduce execution time by 36% (baseline version VS version 1.03 of tcpdf_for_xoops)

Quote:

My guide to use _RTL =true/false can help to have less conflicts with newer versions of TCPDF.


It is perhaps for Xoops. But increases the risk of conflict between ISO and UTF-8 (see above) in Tcpdf_for_xoops

Quote:

but only about the directory structure and ease of updates in the future!


The company that I lead will just follow up and updates of these frameworks (I use it for my clients).
I'm busy has put online wiki (french / english) to make best use tcpdf_for_xoops (see here, the site is still in draft form).

Quote:

A good example is TinyMCE: I can just copy the files except the src. files and I am ready to go. I hope, we can achieve the same with TCPDF, i.e. we can just copy over the files from a new TCPDF release without the need to modify any files on XOOPS.


This is my vision of labor.
The hours of work cost a very expensive

Quote:

no need for them and it makes the work more cleaner. we can read them from xoops!


I'll repeat myself. Xoops is written in iso or utf-8. The day will be 100% Xoops utf-8, we can remove some lines of code. Meanwhile, we must ensure coexistence between utf-8 and iso.*/



22
black_beard
Re: News 1.67 Final released for XOOPS 2.5.5

Thanks irmtfan,

I prepare a manual (french and english version) for creating file makepdf.php, the draft is here



23
black_beard
Re: News 1.67 Final released for XOOPS 2.5.5

hello chnwalkman,

for fix this bug, remplace in ./Frameworks/tcpdf/config/tcpdf_config.php line 35
if (!is_dir(XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/fonts') OR !array_key_exists($xoopsConfig['language'],$tableau_font)) {


with

if (!array_key_exists($xoopsConfig['language'],$tableau_font)) {


I'm updating version



24
black_beard
Re: TCPDF

The last version of tcpdf_for_xoops is 1.03, it's based tcpdf class latest version 5.9.179



25
black_beard
Re: TCPDF

hello,
you will find the latest version of tcpdf_for_xoops here.
This version uses the latest version of the TCPDF class and you will find a makepdf.php for the News and NewBB module.



26
black_beard
Re: News 1.67 Final released for XOOPS 2.5.5

Hello,
a new version 1.03 of tcpdf_for_xoops is available here, I have considered your comments. Here are the changes made ​​to the frameworks:
Quote:

- PHP TCPDF class has been updated (5.9.172 => 5.9.176)
- Exotic font has been deleted
- Creating a separate package for Japanese, Chinese simplified,
Chinese Taiwanese, Korean fonts. You can install them in
the directories ./Frameworks/tcpdf/fonts or ./language/fonts
- Adding the support Ukrainian language (./Frameworks/tcpdf/config/lang/ukrainian.php)
- Adding support Chinese simplified language (./Frameworks/tcpdf/config/lang/schinese.php)
- Adding support Chinese taiwanese language (./Frameworks/tcpdf/config/lang/tchinese.php)
- Adding file : ./Frameworks/tcpdf/docs/changelog.txt
- Adding file : ./Frameworks/tcpdf/docs/README.txt
- Adding makepdf.php for 'newbb' mobule



27
black_beard
Re: News 1.67 Final released for XOOPS 2.5.5

hello,
Tomorrow, I added these features in TCPDF Frameworks:
- Removal of exotic fonts (an idea mamba)
- Support for some local police (Chinese, Japanese, Korean, Arabic) with automatic selection in the file tcpdf_config.php (an idea irmtfan)
- Add files and schinese.php tchinese.php directory
- Update the class TCPDF (5.9.172 => 5.9.176)

If you have other ideas to suggest me, please,



28
black_beard
Re: News 1.67 Final released for XOOPS 2.5.5

hello mamba
do we consider that the Chinese, Korean, Arabic, Japanese fonts are basic fonts or optional fonts ?



29
black_beard
Re: News 1.67 Final released for XOOPS 2.5.5

for chinese simplified character use font cid0cs
for Chinese (Taiwan) character use font cid0ct
for japan character use font cid0jp
for korean character use font cid0kr
for arabian character use font aealarabiya

Changes are made in the file ./Frameworks/tcpdf/config/tcpdf_config.php, between line 47 and line 66



30
black_beard
Re: News 1.67 Final released for XOOPS 2.5.5

thank you for your participation, changes were made​​, download here




TopTop
« 1 2 (3) 4 5 »



Login

Who's Online

194 user(s) are online (126 user(s) are browsing Support Forums)


Members: 0


Guests: 194


more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Jul 31
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Latest GitHub Commits