IP Library Granted Patent US 9,613,005
Granted Patent B2
US 9,613,005 · App. 14/130,237 · Granted Apr 4, 2017

Method and apparatus for bidirectional typesetting

Inventors: Yaojun Tang (Beijing, CN); Yanfei Yang (Beijing, CN)
Assignees: Peking University Founder Group Co., Ltd.; Beijing Founder Electronics Co., Ltd.
G06F17/211G06F17/214G06F17/2223G06F17/2288
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,613,005
App. No.
14/130,237
Granted
Apr 4, 2017
Kind
B2
Abstract

The application provides method and apparatus for bidirectional typesetting. The method for bidirectional typesetting of the present application comprises: retrieving a small sample used for a document to be bi-directionally typeset; defining at least one reverse region, wherein the reverse region consists of successive characters required to be reversed in the retrieved small sample; and determining locations where the reversed characters will be located in the documents and recording the locations into a big sample.

Claims (57)

1. A method for bidirectional typesetting, comprising:

retrieving a small sample formed for a document to be bi-directionally typeset;

determining at least one reverse region, the reverse region consisting of successive characters required to be reversed in the retrieved small sample; and

determining locations where the reversed characters will be located in the documents and recording the determined locations into a big sample,

wherein the small sample is a file comprising a content of the document, and the big sample is a file obtained from the small sample and comprising typeset location information of the document, and

wherein the step of determining at least one reverse region comprises:

setting row indexes of the characters required to be reversed in the retrieved small sample; and

defining all successive characters required to be reversed and having a same row index to be one reverse region.

2. The method according to claim 1 , further comprising:

deciding whether characters in the retrieved small sample are required to be reversed or not according to a fault typesetting direction and categories of characters.

3. The method according to claim 2 , wherein the step of deciding comprises:

deciding whether or not a reading direction of characters in the retrieved small sample is contrary to the fault typesetting direction, and

if yes, the characters are determined as the characters required to be reversed.

4. The method according to claim 3 , wherein the step of determining locations where the reversed characters will be located in the documents comprises:

determining, in the reverse region, locations where the characters will be located before they are reversed; and

exchanging the n-th character with the (k+1−n)-th character in the reverse region to acquire the locations of the reversed characters, wherein k is total number of characters in the reverse region, n is an integer bigger than 1 and less than or equal to k/2.

5. The method according to claim 3 , wherein the step of determining locations where the reversed characters will be located in the documents comprises:

reversing the characters in the reverse region; and

determining locations of the reversed characters in the reverse region.

6. The method according to claim 2 , wherein the step of determining locations where the reversed characters will be located in the documents comprises:

determining, in the reverse region, locations where the characters will be located before they are reversed; and

exchanging the n-th character with the (k+1−n)-th character in the reverse region to acquire the locations of the reversed characters, wherein k is total number of characters in the reverse region, n is an integer bigger than 1 and less than or equal to k/2.

7. The method according to claim 1 , wherein the step of determining locations where the reversed characters will be located in the documents comprises:

determining, in the reverse region, locations where the characters will be located before they are reversed; and

exchanging the n-th character with the (k+1−n)-th character in the reverse region to acquire the locations of the reversed characters, wherein k is total number of characters in the reverse region, n is an integer bigger than 1 and less than or equal to k/2.

8. The method according to claim 7 , wherein the step of determining locations where the reversed characters will be located in the documents comprises:

reversing the characters in the reverse region; and

determining locations of the reversed characters in the reverse region.

9. The method according to claim 1 , wherein the step of determining locations where the reversed characters will be located in the documents comprises:

reversing the characters in the reverse region; and

determining locations of the reversed characters in the reverse region.

10. The method according to claim 1 , wherein the step of determining locations where the reversed characters will be located in the documents comprises:

determining, in the reverse region, locations where the characters will be located before they are reversed; and

exchanging the n-th character with the (k+1−n)-th character in the reverse region to acquire the locations of the reversed characters, wherein k is total number of characters in the reverse region, n is an integer bigger than 1 and less than or equal to k/2.

11. The method according to claim 1 , wherein the step of determining locations where the reversed characters will be located in the documents comprises:

reversing the characters in the reverse region; and

determining locations of the reversed characters in the reverse region.

12. An apparatus for bidirectional typesetting comprising:

a big sample constructing unit used for constructing a big sample, wherein, the big sample constructing unit comprises:

a reverse region determining unit configured to determine, during constructing the big sample, at least one reverse region consisting of successive characters required to be reversed in a small sample used for a document to be bi-directionally typeset; and

a reverse location determining unit configured to determine locations where the reversed characters will be located in the document and record the determined locations into the big sample,

wherein the small sample is a file comprising a content of the document, and the big sample is a file obtained from the small sample and comprising typeset location information of the document, and

wherein the reverse region determining unit is further configured to set row indexes of the characters required to be reversed; and define all successive characters required to be reversed and having a same row index to be one reverse region.

13. The apparatus according to claim 12 , further comprising:

a reverse character deciding unit configured to decide whether or not characters in the small sample are required to be reversed according to a fault typesetting direction and categories of characters.

14. The apparatus according to claim 12 , further comprising:

a reverse character deciding unit configured to decide the characters having reading directions contrary to a fault typesetting direction as the characters required to be reversed.

15. The apparatus according to claim 12 , wherein the reverse location determining unit is further configured to determine locations where the characters before reversed will be located in the reverse region; and exchange the n-th character with the (k+1−n)-th character in the reverse region so as to retrieve the locations of the reversed characters, wherein k is total number of characters in the reverse region, n is an integer bigger than 1 and less than or equal to k/2.

16. The apparatus according to claim 12 , wherein the reverse location determining unit is further configured to reverse the characters in the reverse region; and determine locations of the reversed characters in the reverse region.

17. A non-transitory computer readable storage medium on which is stored the following instructions:

instructions for retrieving a small sample used for a document to be bi-directionally typeset;

instructions for determining at least one reverse region consisting of successive characters required to be reversed in the retrieved small sample; and

instructions for determining locations where the reversed characters are to be located in the documents and recording the locations into a big sample,

wherein the small sample is a file comprising a content of the document, and the big sample is a file obtained from the small sample and comprising typeset location information of the document, and

wherein the determining the at least one reverse region comprises:

setting row indexes of the characters required to be reversed in the retrieved small sample; and

defining all successive characters required to be reversed and having a same row index to be one reverse region.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 2, 2023
From: PEKING UNIVERSITY FOUNDER GROUP CO., LTD.; BEIJING FOUNDER ELECTRONICS CO., LTD.
To: NEW FOUNDER HOLDINGS DEVELOPMENT LIMITED LIABILITY COMPANY; BEIJING FOUNDER ELECTRONICS CO., LTD.
Reel/Frame 062848/0923 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 22, 2014
From: TANG, YAOJUN; YANG, YANFEI
To: PEKING UNIVERSITY FOUNDER GROUP CO., LTD.; BEIJING FOUNDER ELECTRONICS CO., LTD.
Reel/Frame 032502/0734 →
Priority Claims (1)
CN 2011 1 0459186 · Dec 31, 2011 · national
Continuity (1)
Related Publication 20150019959A1 · Jan 15, 2015