发明名称 Method and apparatus for translating JAVASCRIPT across different host environments
摘要 A computer implemented method and apparatus for translating JAVASCRIPT code across different host environments. The method comprises accessing a document comprising JAVASCRIPT code of a first type; parsing the JAVASCRIPT code of the first type in the document; tracking a location of an event or action in the document in which the JAVASCRIPT code of the first type is present; translating the parsed JAVASCRIPT code of the first type into JAVASCRIPT code of a second type; merging the translated JAVASCRIPT code into a location in a translated JAVASCRIPT file, wherein the location corresponds to the location tracked in the document; and exporting the translated JAVASCRIPT file.
申请公布号 US9613157(B2) 申请公布日期 2017.04.04
申请号 US201313934417 申请日期 2013.07.03
申请人 ADOBE SYSTEMS INCORPORATED 发明人 Kaushik Nishant;Gupta Yash Kumar
分类号 G06F17/22;G06F17/00;G06F17/30;G06F9/45 主分类号 G06F17/22
代理机构 Keller Jolley Preece 代理人 Keller Jolley Preece
主权项 1. A computer implemented method comprising: accessing, on a client-computing device, a first document comprising scripting code of a first type; parsing, by the client-computing device, the scripting code of the first type in the first document; tracking, by the client-computing device, a location of an event or action in the first document in which the scripting code of the first type is present; translating, by the client-computing device and prior to execution of the scripting code of the first type, the parsed scripting code of the first type into scripting code of a second type, wherein translating comprises mapping scripting code objects in scripting code of the first type to scripting code objects in scripting code of the second type, wherein there is a one-to-one mapping of scripting code of the first type to scripting code of the second type; merging, by the client-computing device, the translated scripting code into a location in a translated scripting file, wherein the location corresponds to the location tracked in the first document; and exporting, by the client-computing device, the translated scripting file for use with a second document, wherein one of the first document or the second document is a PDF document.
地址 San Jose CA US