• Resolved sinapars

    (@sinapars)


    Hi Team ,

    Thanks for the new feature (Estimated reading time for Single Docs) you developed, but This feature does not work on Persian language
    Even on the articles page, there is a column with the name of the Word Count, where the number of words is displayed as zero

    Persian (Farsi) text to review and test this issue:

    لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ، و با استفاده از طراحان گرافیک است، چاپگرها و متون بلکه روزنامه و مجله در ستون و سطرآنچنان که لازم است، و ب��ای شرایط فعلی تکنولوژی مورد نیاز، و کاربردهای متنوع با هدف بهبود ابزارهای کاربردی می باشد، کتابهای زیادی در شصت و سه درصد گذشته حال و آینده، شناخت فراوان جامعه و متخصصان را می طلبد، تا با نرم افزارها شناخت بیشتری را برای طراحان رایانه ای علی الخصوص طراحان خلاقی، و فرهنگ پیشرو در زبان فارسی ایجاد کرد، در این صورت می توان امید داشت که تمام و دشواری موجود در ارائه راهکارها، و شرایط سخت تایپ به پایان رسد و زمان مورد نیاز شامل حروفچینی دستاوردهای اصلی، و جوابگوی سوالات پیوسته اهل دنیای موجود طراحی اساسا مورد استفاده قرار گیرد.لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ، و با استفاده از طراحان گرافیک است، چاپگرها و متون بلکه روزنامه و مجله در ستون و سطرآنچنان که لازم است، و برای شرایط فعلی تکنولوژی مورد نیاز، و کاربردهای متنوع با هدف بهبود ابزارهای کاربردی می باشد، کتابهای زیادی در شصت و سه درصد گذشته حال و آینده، شناخت فراوان جامعه و متخصصان را می طلبد، تا با نرم افزارها شناخت بیشتری را برای طراحان رایانه ای علی الخصوص طراحان خلاقی، و فرهنگ پیشرو در زبان فارسی ایجاد کرد، در این صورت می توان امید داشت که تمام و دشواری موجود در ارائه راهکارها، و شرایط سخت تایپ به پایان رسد و زمان مورد نیاز شامل حروفچینی دستاوردهای اصلی، و جوابگوی سوالات پیوسته اهل دنیای موجود طراحی اساسا مورد استفاده قرار گیرد.لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ، و با استفاده از طراحان گرافیک است، چاپگرها و متون بلکه روزنامه و مجله در ستون و سطرآنچنان که لازم است، و برای شرایط فعلی تکنولوژی مورد نیاز، و کاربردهای متنوع با هدف بهبود ابزارهای کاربردی می باشد، کتابهای زیادی در شصت و سه درصد گذشته حال و آینده، شناخت فراوان جامعه و متخصصان را می طلبد، تا با نرم افزارها شناخت بیشتری را برای طراحان رایانه ای علی الخصوص طراحان خلاقی، و فرهنگ پیشرو در زبان فارسی ایجاد کرد، در این صورت می توان امید داشت که تمام و دشواری موجود در ارائه راهکارها، و شرایط سخت تایپ به پایان رسد و زمان مورد نیاز شامل حروفچینی دستاوردهای اصلی، و جوابگوی سوالات پیوسته اهل دنیای موجود طراحی اساسا مورد استفاده قرار گیرد.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter sinapars

    (@sinapars)

    Hi again,

    I was able to solve the problem by changing the pattern in the following directory:
    betterdocs/includes/Shortcodes/ReadingTime.php > Line:29

    Change this line:

    preg_match_all( '/\b[a-zA-Z]+\b/', $content_without_html_tags, $matches );

    to:

    preg_match_all( '/\p{L}+/u', $content_without_html_tags, $matches );

    This pattern works on all characters (UTF-8) in different languages.

    Please note that the second problem, i.e. not counting the words in the Word Count column, still exists

    BR

    Plugin Support Amit Paul

    (@paulamit)

    Hi @sinapars,

    Greetings. Hope you’re doing good.

    Really sorry for the delay in reaching you. Thanks for pointing this to us. I have already forwarded this to our Development team to check & fix this as early as possible. Also, thank you again for sharing the solving process.

    No worries, We will try to include this fix in our next release.

    Have a nice day!

    Plugin Support Amit Paul

    (@paulamit)

    Hi @sinapars,

    I hope this message finds you well. I’m pleased to inform you that we’ve recently resolved the issue you brought to our attention. Thank you once again for bringing it to our notice.

    You’ll find the fix included in this updated version, which you can download from here: https://d.pr/f/KuJfBs

    Also, we’ll be incorporating this fix into our upcoming release. Please try out this updated version now and let me know how it performs.

    Thank you!

    Thread Starter sinapars

    (@sinapars)

    Hi @paulamit
    Greetings. Hope you’re doing good.


    Thank you for reviewing and following up on this issue
    I installed the dev-version and apparently the problem is solved and everything works properly
    Thank you very much

    but that the second problem, i.e. not counting the persian (UTF-8) words in the Word Count column, still exists
    https://drive.google.com/file/d/19tK2z6inWHlvMWgDoAwbAYm6TyKiEpmx/view?usp=sharing

    Plugin Support Amit Barai Alit

    (@amitbarai013)

    Hi sinapars,

    Thanks for sharing the details with us. I am so glad to know that your issue has been resolved by using the Dev version of the plugin that we provided before.

    Regarding the second issue: Thanks for sharing the screenshot with us. Will you please tell me if you have added only the Persian content to that doc? Or there are English content also? Will you please provide the URL of that doc so that we can check and assist you?

    Thank you.

    Plugin Support Amit Barai Alit

    (@amitbarai013)

    Hi sinapars,
    Hope you are doing well.

    I am pleased to share the good news that the issue you mentioned has been successfully addressed in the latest version of the BetterDocs plugin. To ensure you benefit from this fix, kindly update the BetterDocs plugin to the latest version.

    Your prompt update will guarantee the resolution of the mentioned issue.

    Thank you for your cooperation.

    Thread Starter sinapars

    (@sinapars)

    Hi @amitbarai013 ,
    Thanks for Response

    If you mean my second problem, this problem has not been solved and Farsi words are still not counted, and according to my review, no changes have been made in the codes to solve this problem in the latest version (3.5.3).

    betterdocs/includes/Core/Admin.php : 342

    Regarding the second issue: Thanks for sharing the screenshot with us. Will you please tell me if you have added only the Persian content to that doc? Or there are English content also? Will you please provide the URL of that doc so that we can check and assist you?

    It doesn’t matter if the words are all Persian, the word count will be zero, if it is a combination of Persian and English, only the English words will be counted.

    BR

    Plugin Support Amit Barai Alit

    (@amitbarai013)

    Hi sinapars ,

    I am really sorry to hear about that second problem. We will investigate this issue deeply. I will let you know the update after checking this, no worries.

    Thank you for your patience.

    Plugin Support Amit Barai Alit

    (@amitbarai013)

    Hi sinapars ,
    I hope you are doing well.

    I am glad to inform you that this word count issue for the Persian content is resolved in our Dev version of the BetterDocs plugin. Please download the plugin from here: https://d.pr/f/8Y4zB1 and install it on your website.

    Please check this screencast after using the Dev version on my end: https://d.pr/v/FftZNX

    Let me know how it goes.
    Thank you.

    Thread Starter sinapars

    (@sinapars)

    Hi @amitbarai013

    I appreciate your feedback, and I’m glad to hear that installing the dev-version resolved the word counting issue.

    BR

    Plugin Support Amit Barai Alit

    (@amitbarai013)

    Hi sinapars ,

    Thanks for getting back to us. Please try the Dev version, it will definitely resolve your issue, no worries.

    I hope you love my support so far.

    That would be awesome if you give us support by reviewing us “5-Star” from here: https://wordpress.org/plugins/betterdocs/#reviews

    This may help us to boost our energy and provide better support. And also, help us to grow more.

    Have a good day!

    Thread Starter sinapars

    (@sinapars)

    Hi @amitbarai013

    I tested the dev-version and the problem is solved. Thanks for your great and constant support ✌️

    I have already proudly rated your plugin and registered feedback, and I dare say that your team is one of the best WordPress plugin support teams. 🤩

    BR

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.