Assigned
Status Update
Comments
pu...@google.com <pu...@google.com>
ar...@google.com <ar...@google.com> #2
I have informed our engineering team of this feature request. There is currently no ETA for its implementation.
A current workaround would be to check the returned "boundingPoly" [1] "vertices" for the returned "textAnnotations". If the calculated rectangle's heights > widths, than your image is sideways.
[1]https://cloud.google.com/vision/reference/rest/v1/images/annotate#boundingpoly
A current workaround would be to check the returned "boundingPoly" [1] "vertices" for the returned "textAnnotations". If the calculated rectangle's heights > widths, than your image is sideways.
[1]
Description
Description: I am encountering an issue where translating HTML content from left-to-right (LTR) languages to right-to-left (RTL) languages using the @google-cloud/translate package results in duplicate text-align styles within the style attribute. This occurs when the original HTML already contains a text-align style, and the translation process adds another text-align style.
Steps to Reproduce:
Expected Behavior: The resulting HTML content should not contain duplicate text-align styles. The expected translated HTML should be:
Actual Behavior:
The translated HTML contains duplicate text-align styles:
Environment: which product (packages/*): @google-cloud/translate OS: Windows 11 Pro Node.js version: 16.13.2 google-cloud-node version: 1.1.0
Thank you for your time and consideration.