Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7367451B2 - Information processing device, information processing system and program - Google Patents
[go: Go Back, main page]

JP7367451B2 - Information processing device, information processing system and program - Google Patents

Information processing device, information processing system and program Download PDF

Info

Publication number
JP7367451B2
JP7367451B2 JP2019189840A JP2019189840A JP7367451B2 JP 7367451 B2 JP7367451 B2 JP 7367451B2 JP 2019189840 A JP2019189840 A JP 2019189840A JP 2019189840 A JP2019189840 A JP 2019189840A JP 7367451 B2 JP7367451 B2 JP 7367451B2
Authority
JP
Japan
Prior art keywords
display area
area
character string
displayed
information processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2019189840A
Other languages
Japanese (ja)
Other versions
JP2021064303A (en
Inventor
拓海 小林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2019189840A priority Critical patent/JP7367451B2/en
Publication of JP2021064303A publication Critical patent/JP2021064303A/en
Application granted granted Critical
Publication of JP7367451B2 publication Critical patent/JP7367451B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Stored Programmes (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Description

本発明は、情報処理装置、情報処理システム、プログラムに関する。 The present invention relates to an information processing device, an information processing system, and a program.

従来より、ソフトウェアを動作させるときに表示される画面において、文字列を表示することが行われている。そして、ソフトウェアを開発する際には、文字列が欠落なく表示されることを検査する場合がある。 2. Description of the Related Art Conventionally, character strings have been displayed on screens displayed when software is operated. When developing software, it may be checked that character strings are displayed without any omissions.

特許文献1には、表示検査方法について開示されている。この表示検査方法は、項目表示領域内に表示されている表示文字列のキャプチャ画像を取得する一方で、検査対象のソフトウエア(プリンタドライバ)に組み込まれるリソースファイル内の文字コード、対応関係情報及び属性情報等に基づき正解となる比較用文字列画像を生成する。そして、キャプチャ画像と比較用文字列画像とを画像比較して文字欠けの有無等を検査する。 Patent Document 1 discloses a display inspection method. This display inspection method acquires a capture image of the displayed character string displayed in the item display area, while also checking the character codes, correspondence information, and A character string image for comparison that is the correct answer is generated based on attribute information and the like. Then, the captured image and the character string image for comparison are compared to check whether there are any missing characters or the like.

特開20008-158643号公報Japanese Patent Application Publication No. 20008-158643

しかしながら、ソフトウェアを他の言語に対応させた場合、言語によっては、予め用意した表示領域内に文字列が収まりきらず、その結果、文字列の一部が欠落して表示される、いわゆる文字切れが生じる場合がある。一方、文字切れを、ソフトウェアの開発者が目視で確認することは、作業量が多大となり、開発者への負担が大きい。
本発明は、文字切れを目視で確認する場合に比較して、ソフトウェアの開発者の負担が軽減する情報処理装置等を提供することを目的とする。
However, when making the software compatible with other languages, depending on the language, the string may not fit within the display area prepared in advance, resulting in so-called broken characters, where part of the string is displayed as missing. may occur. On the other hand, it requires a large amount of work for a software developer to visually check for cut-off characters, placing a heavy burden on the developer.
An object of the present invention is to provide an information processing device and the like that reduces the burden on software developers compared to the case where character breaks are visually confirmed.

請求項1に記載の発明は、ソフトウェアを動作させるときに表示される画面中で文字列を表示する領域である表示領域を拡張した領域である拡張領域を設定する設定手段と、前記表示領域および前記拡張領域に当該表示領域で表示される文字列を表示したときの、それぞれの画像の差分の画像である差分画像が検出されたときに、当該表示領域に当該表示領域で表示される文字列が収まらないことを検知する検知手段と、を備える情報処理装置である。
請求項2に記載の発明は、前記設定手段は、文字列が1行であるか、複数行であるかにより、前記拡張領域の設定を変更することを特徴とする請求項1に記載の情報処理装置である。
請求項3に記載の発明は、前記設定手段は、文字列が1行であるときに、前記拡張領域を文字列の言語に合わせて設定することを特徴とする請求項2に記載の情報処理装置である。
請求項4に記載の発明は、前記設定手段は、前記言語で文字列を記載するときに文字列が延びる方向に前記表示領域を拡張して前記拡張領域を設定することを特徴とする請求項3に記載の情報処理装置である。
請求項5に記載の発明は、前記設定手段は、文字列が複数行からなるときは、前記表示領域を下方向に拡張して前記拡張領域を設定することを特徴とする請求項2に記載の情報処理装置である。
請求項6に記載の発明は、前記表示領域と前記拡張領域とを位置合わせする位置合わせ手段をさらに備え、前記位置合わせ手段は、文字列の言語に合わせて位置合わせを変更することを特徴とする請求項1に記載の情報処理装置である。
請求項7に記載の発明は、前記位置合わせ手段は、前記言語で文字列を記載するときに最初の文字となる位置に位置合わせすることを特徴とする請求項6に記載の情報処理装置である。
請求項8に記載の発明は、前記差分画像が検出されたときに、当該差分画像が生じないように修正する修正手段をさらに備えることを特徴とする請求項1に記載の情報処理装置である。
請求項9に記載の発明は、前記修正手段は、前記表示領域の周囲に表示されるオブジェクトにより修正を行うか否かを決定することを特徴とする請求項8に記載の情報処理装置である。
請求項10に記載の発明は、前記修正手段は、前記オブジェクトの種類により修正を行うか否かを決定することを特徴とする請求項9に記載の情報処理装置である。
請求項11に記載の発明は、前記修正手段は、文字列の言語への翻訳を変更することを特徴とする請求項8に記載の情報処理装置である。
請求項12に記載の発明は、画像を表示する表示装置と、前記表示装置に表示される前記画像の制御を行う情報処理装置と、を備え、前記情報処理装置は、ソフトウェアを動作させるときに表示される画面中で文字列を表示する領域である表示領域を拡張した領域である拡張領域を設定する設定手段と、前記表示領域および前記拡張領域に当該表示領域で表示される文字列を表示したときの、それぞれの画像の差分の画像である差分画像が検出されたときに、当該表示領域に当該表示領域で表示される文字列が収まらないことを検知する検知手段と、を備える情報処理システムである。
請求項13に記載の発明は、コンピュータに、ソフトウェアを動作させるときに表示される画面中で文字列を表示する領域である表示領域を拡張した領域である拡張領域を設定する設定機能と、前記表示領域および前記拡張領域に当該表示領域で表示される文字列を表示したときの、それぞれの画像の差分の画像である差分画像が検出されたときに、当該表示領域に当該表示領域で表示される文字列が収まらないことを検知する検知機能と、を実現させるためのプログラムである。
The invention according to claim 1 includes: a setting means for setting an expanded area that is an expanded area of a display area that is an area for displaying character strings on a screen displayed when operating software; When a character string to be displayed in the display area is displayed in the expanded area, and a difference image that is a difference image between each image is detected, a character string to be displayed in the display area in the display area. The information processing apparatus includes a detection means for detecting that the information is not contained.
The invention according to claim 2 is characterized in that the setting means changes the setting of the expansion area depending on whether the character string is one line or multiple lines. It is a processing device.
The invention according to claim 3 is the information processing according to claim 2, characterized in that, when the character string is one line, the setting means sets the expansion area according to the language of the character string. It is a device.
The invention according to claim 4 is characterized in that the setting means sets the expanded area by expanding the display area in a direction in which the character string extends when writing the character string in the language. 3.
The invention according to claim 5 is characterized in that, when the character string consists of multiple lines, the setting means expands the display area downward and sets the expansion area. This is an information processing device.
The invention according to claim 6 further includes positioning means for positioning the display area and the expansion area, and the positioning means changes the positioning according to the language of the character string. The information processing apparatus according to claim 1.
The invention according to claim 7 is the information processing apparatus according to claim 6, characterized in that the positioning means performs positioning at a position that becomes the first character when writing a character string in the language. be.
The invention according to claim 8 is the information processing apparatus according to claim 1, further comprising a correction unit that corrects when the difference image is detected so that the difference image does not occur. .
The invention according to claim 9 is the information processing apparatus according to claim 8, wherein the modification means determines whether or not to perform modification based on objects displayed around the display area. .
The invention according to claim 10 is the information processing apparatus according to claim 9, wherein the modification means determines whether or not to perform modification depending on the type of the object.
The invention according to claim 11 is the information processing apparatus according to claim 8, wherein the modification means changes the translation of the character string into a language.
The invention according to claim 12 includes a display device that displays an image, and an information processing device that controls the image displayed on the display device, and the information processing device is configured to operate software when operating software. a setting means for setting an extended area that is an expanded area of a display area that is an area for displaying character strings on a displayed screen, and displaying character strings to be displayed in the display area in the display area and the expanded area; and a detection means for detecting that a character string displayed in the display area does not fit in the display area when a difference image that is a difference image between the respective images is detected. It is a system.
The invention according to claim 13 provides a setting function for setting, in a computer, an extended area that is an expanded area of a display area that is an area for displaying character strings on a screen displayed when software is operated; When a character string to be displayed in the display area is displayed in the display area and the expansion area, and a difference image that is a difference image between the respective images is detected, the character string to be displayed in the display area is displayed in the display area. This is a program that implements a detection function that detects when a character string does not fit.

請求項1の発明によれば、文字切れを目視で確認する場合に比較して、ソフトウェアの開発者の負担が軽減する情報処理装置を提供することができる。
請求項2の発明によれば、文字切れが生じやすい領域に拡張領域を設定することができる。
請求項3の発明によれば、言語毎に文字切れが生じやすい領域に拡張領域を設定することができる。
請求項4の発明によれば、文字切れが生じやすい領域をより正確に定めることができる。
請求項5の発明によれば、文字列が複数行のときに特に文字切れが生じやすい下方向の領域に拡張領域を設定することができる。
請求項6の発明によれば、文字切れが生じる箇所の特定がより簡単になる。
請求項7の発明によれば、言語毎に異なる書式に合わせて拡張領域を設定することができる。
請求項8の発明によれば、ソフトウェアの開発者の負担がさらに軽減する。
請求項9の発明によれば、文字列の表示が不自然になることを抑制できる。
請求項10の発明によれば、周囲のオブジェクトとのバランスを考慮することができる。
請求項11の発明によれば、表示領域の大きさを変更しなくても文字切れを修正することができる。
請求項12の発明によれば、文字切れを目視で確認する場合に比較して、ソフトウェアの開発者の負担が軽減する情報処理システムを提供することができる。
請求項13の発明によれば、文字切れを目視で確認する場合に比較して、ソフトウェアの開発者の負担が軽減する機能をコンピュータにより実現できる。
According to the invention of claim 1, it is possible to provide an information processing device that reduces the burden on software developers compared to the case where character breaks are visually confirmed.
According to the second aspect of the invention, an expansion area can be set in an area where characters are likely to be cut off.
According to the third aspect of the invention, it is possible to set an expansion area in an area where characters are likely to be cut off for each language.
According to the invention of claim 4, it is possible to more accurately define an area where character breakage is likely to occur.
According to the fifth aspect of the invention, the expansion area can be set in a downward area where character breaks are particularly likely to occur when the character string is in multiple lines.
According to the invention of claim 6, it becomes easier to specify a location where a character break occurs.
According to the seventh aspect of the invention, it is possible to set an extension area according to a different format for each language.
According to the invention of claim 8, the burden on the software developer is further reduced.
According to the invention of claim 9, it is possible to suppress display of character strings from becoming unnatural.
According to the tenth aspect of the invention, balance with surrounding objects can be taken into consideration.
According to the eleventh aspect of the invention, broken characters can be corrected without changing the size of the display area.
According to the twelfth aspect of the invention, it is possible to provide an information processing system that reduces the burden on a software developer compared to the case where character breaks are visually confirmed.
According to the thirteenth aspect of the invention, a function that reduces the burden on the software developer can be realized by a computer, compared to the case where character breaks are visually confirmed.

本実施の形態における情報処理システムの構成例を示す図である。1 is a diagram illustrating a configuration example of an information processing system according to the present embodiment. アプリケーションソフトウェアを動作させたときに表示される画面の一例を示した図である。FIG. 3 is a diagram showing an example of a screen displayed when application software is operated. (a)~(e)は、文字切れが生じた例を示した図である。(a) to (e) are diagrams showing examples in which characters are cut off. 第1の実施形態の情報処理装置の機能構成例について説明したブロック図である。FIG. 2 is a block diagram illustrating an example of the functional configuration of the information processing device according to the first embodiment. 第1の実施形態における情報処理装置の動作を説明したフローチャートである。3 is a flowchart illustrating the operation of the information processing apparatus in the first embodiment. (a)~(b)は、図5のステップ110~ステップ113で行う処理について、さらに詳しく説明した図である。(a) to (b) are diagrams explaining in more detail the processing performed in steps 110 to 113 in FIG. 5. (a)~(b)は、図5のステップ110~ステップ113で行う処理について、さらに詳しく説明した図である。(a) to (b) are diagrams explaining in more detail the processing performed in steps 110 to 113 in FIG. 5. (a)~(b)は、図5のステップ110~ステップ113で行う処理について、さらに詳しく説明した図である。(a) to (b) are diagrams explaining in more detail the processing performed in steps 110 to 113 in FIG. 5. (a)~(b)は、図5のステップ110~ステップ113で行う処理について、さらに詳しく説明した図である。(a) to (b) are diagrams explaining in more detail the processing performed in steps 110 to 113 in FIG. 5. 第2の実施形態の情報処理装置の機能構成例について説明したブロック図である。FIG. 7 is a block diagram illustrating an example of a functional configuration of an information processing device according to a second embodiment. 第2の実施形態における情報処理装置の動作を説明したフローチャートである。It is a flow chart explaining operation of an information processing device in a 2nd embodiment.

以下、添付図面を参照して、本発明の実施の形態について詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

<情報処理システム全体の説明>
図1は、本実施の形態における情報処理システム1の構成例を示す図である。
図示するように本実施の形態の情報処理システム1は、表示装置20に表示される画像の制御を行う情報処理装置10と、情報処理装置10により作成された画像情報が入力され、この画像情報に基づき画像を表示する表示装置20と、情報処理装置10に対し開発者が種々の情報を入力するための入力装置30とを備える。
<Description of the entire information processing system>
FIG. 1 is a diagram showing a configuration example of an information processing system 1 according to the present embodiment.
As shown in the figure, an information processing system 1 according to the present embodiment includes an information processing device 10 that controls images displayed on a display device 20, and image information created by the information processing device 10 that is inputted to the information processing system 1. The information processing apparatus 10 includes a display device 20 that displays images based on the information processing apparatus 10, and an input device 30 that allows a developer to input various information to the information processing apparatus 10.

情報処理装置10は、例えば、所謂汎用のパーソナルコンピュータ(PC)である。そして、情報処理装置10は、OS(Operating System)による管理下において、各種アプリケーションソフトウェアを動作させることで、画像情報の作成等が行われるようになっている。
情報処理装置10は、演算手段であるCPU(Central Processing Unit)と、記憶手段であるメインメモリ、およびHDD(Hard Disk Drive)やSSD(Solid State Drive)等のストレージを備える。ここで、CPUは、プロセッサの一例であり、OS(基本ソフトウェア)やアプリケーションソフトウェア(応用ソフトウェア)等の各種ソフトウェアを実行する。また、メインメモリは、各種ソフトウェアやその実行に用いるデータ等を記憶する記憶領域であり、ストレージは、各種ソフトウェアに対する入力データや各種ソフトウェアからの出力データ等を記憶する記憶領域である。
さらに、情報処理装置10は、外部との通信を行うための通信インタフェース(以下、「通信I/F」と表記する)
The information processing device 10 is, for example, a so-called general-purpose personal computer (PC). The information processing device 10 is configured to create image information and the like by operating various application software under the management of an OS (Operating System).
The information processing device 10 includes a CPU (Central Processing Unit) which is a calculation means, a main memory which is a storage means, and storage such as an HDD (Hard Disk Drive) or an SSD (Solid State Drive). Here, the CPU is an example of a processor, and executes various software such as an OS (basic software) and application software (application software). Further, the main memory is a storage area that stores various software and data used for executing the software, and the storage is a storage area that stores input data for various software, output data from the various software, and the like.
Furthermore, the information processing device 10 includes a communication interface (hereinafter referred to as "communication I/F") for communicating with the outside.

表示装置20は、表示画面21に画像を表示する。表示装置20は、例えばPC用の液晶ディスプレイ、液晶テレビあるいはプロジェクタなど、加法混色にて画像を表示する機能を備えたもので構成される。したがって、表示装置20における表示方式は、液晶方式に限定されるものではない。なお、図1に示す例では、表示装置20内に表示画面21が設けられているが、表示装置20として例えばプロジェクタを用いる場合、表示画面21は、表示装置20の外部に設けられたスクリーン等となる。 The display device 20 displays images on a display screen 21. The display device 20 is constituted by, for example, a liquid crystal display for a PC, a liquid crystal television, or a projector, which has a function of displaying an image by additive color mixing. Therefore, the display method in the display device 20 is not limited to the liquid crystal method. Note that in the example shown in FIG. 1, a display screen 21 is provided within the display device 20; however, when using a projector as the display device 20, for example, the display screen 21 may be a screen provided outside the display device 20, etc. becomes.

入力装置30は、キーボードやマウス等で構成される。入力装置30は、アプリケーションソフトウェアの起動、終了、指示を行うのに使用する。また、詳しくは後述するが、アプリケーションソフトウェアの開発を行う際に、使用するソフトウェアについて、起動、終了、指示を行うのに使用する。 The input device 30 includes a keyboard, a mouse, and the like. The input device 30 is used for starting, terminating, and giving instructions to application software. Further, as will be described in detail later, when developing application software, it is used to start, terminate, and give instructions for the software to be used.

情報処理装置10および表示装置20は、DVI(Digital Visual Interface)を介して接続されている。なお、DVIに代えて、HDMI(登録商標)(High-Definition Multimedia Interface)やDisplayPort等を介して接続するようにしてもかまわない。
また情報処理装置10と入力装置30とは、例えば、USB(Universal Serial Bus)を介して接続されている。なお、USBに代えて、IEEE1394やRS-232C等を介して接続されていてもよい。
The information processing device 10 and the display device 20 are connected via a DVI (Digital Visual Interface). Note that instead of DVI, connection may be made via HDMI (registered trademark) (High-Definition Multimedia Interface), DisplayPort, or the like.
Further, the information processing device 10 and the input device 30 are connected via, for example, a USB (Universal Serial Bus). Note that the connection may be made via IEEE1394, RS-232C, etc. instead of USB.

なお、本実施の形態における情報処理システム1は、図1の形態に限られるものではない。例えば、情報処理システム1としてスマートフォン端末やタブレット端末を例示することができる。この場合、スマートフォン端末やタブレット端末は、タッチパネルを備え、このタッチパネルにより画像の表示を行うとともに開発者の指示が入力される。即ち、タッチパネルが、表示装置20および入力装置30として機能する。また同様に、表示装置20および入力装置30を統合した装置として、タッチモニタを用いることもできる。これは、上記表示装置20の表示画面21としてタッチパネルを使用したものである。この場合、情報処理装置10により画像情報が作成され、この画像情報に基づきタッチモニタに画像が表示される。そして、開発者は、このタッチモニタをタッチ等することで、指示を入力する。 Note that the information processing system 1 in this embodiment is not limited to the form shown in FIG. For example, the information processing system 1 may be a smartphone terminal or a tablet terminal. In this case, the smartphone terminal or tablet terminal is equipped with a touch panel, and the touch panel displays images and inputs instructions from the developer. That is, the touch panel functions as the display device 20 and the input device 30. Similarly, a touch monitor can also be used as a device that integrates the display device 20 and the input device 30. This uses a touch panel as the display screen 21 of the display device 20. In this case, image information is created by the information processing device 10, and an image is displayed on the touch monitor based on this image information. Then, the developer inputs instructions by touching the touch monitor.

<情報処理装置10の概略説明>
次に、情報処理装置10について、より詳しく説明を行う。
本実施の形態の情報処理装置10は、例えば、アプリケーションソフトウェアの開発を行うときに使用する装置である。
<General description of information processing device 10>
Next, the information processing device 10 will be explained in more detail.
The information processing device 10 of this embodiment is, for example, a device used when developing application software.

図2は、アプリケーションソフトウェアを動作させたときに表示される画面の一例を示した図である。
図示する画面では、ウィンドウW1として、属性の検索画面が表示されている。そして、予め定められた文字列M101~M120が表示される。そして、この文字列M101~M120により、アプリケーションソフトウェアを操作するユーザは、検索画面にて設定する項目の内容を知ることができる。例えば、文字列M106では、右側に隣接する入力欄R1が、検索を行うフォルダを入力するために、例えば、フォルダのパスを入力すればよいことがわかる。そして、アプリケーションソフトウェアを使用するユーザは、例えば、入力欄R1に、フォルダのパスを入力し、検索ボタンBt1を押下すると、アプリケーションソフトウェアは、該当する属性に対応するファイルを検索して、表示する。
FIG. 2 is a diagram showing an example of a screen displayed when the application software is operated.
In the illustrated screen, an attribute search screen is displayed as window W1. Then, predetermined character strings M101 to M120 are displayed. The character strings M101 to M120 allow the user operating the application software to know the contents of the items to be set on the search screen. For example, in the character string M106, it can be seen that in order to input the folder to be searched in the input field R1 adjacent to the right side, it is sufficient to input, for example, the path of the folder. Then, when a user using the application software inputs a folder path into the input field R1 and presses a search button Bt1, the application software searches for and displays a file corresponding to the corresponding attribute.

ところが、アプリケーションソフトウェアを、例えば、多言語に対応させる場合、言語毎に文字列の書式や長さ等が異なる。そのため、例えば、日本語で文字列が問題なく表示される場合でも、翻訳後の他の言語では、表示が乱れる場合がある。例えば、文字列が長くなった場合、予め用意された範囲に収まりきらず、文字が全て表示されない場合がある。即ち、文字列の終わりの部分や上側若しくは下側の部分が表示されない文字切れが生じることがある。 However, when application software is made to support multiple languages, for example, the format and length of character strings differ depending on the language. Therefore, for example, even if a character string is displayed without problems in Japanese, the display may be distorted in other languages after translation. For example, if a character string becomes long, it may not fit within a pre-prepared range and all characters may not be displayed. That is, characters may be cut off such that the end, upper, or lower part of the character string is not displayed.

図3(a)~(e)は、文字切れが生じた例を示した図である。
図3(a)~(e)で、表示領域H21~H25は、アプリケーションソフトウェアを動作させるときに表示される画面中で文字列を表示する領域である。表示領域H21~H25は、文字列を表示させるための領域として、予め用意される。なお、図3(a)~(e)では、表示領域H21~H25として、矩形の枠線を表示しているが、これに限られるものではなく、枠線が表示されない場合もある。
FIGS. 3A to 3E are diagrams showing examples in which characters are cut off.
In FIGS. 3A to 3E, display areas H21 to H25 are areas in which character strings are displayed on the screen that is displayed when the application software is operated. Display areas H21 to H25 are prepared in advance as areas for displaying character strings. Note that although rectangular frame lines are displayed as the display areas H21 to H25 in FIGS. 3A to 3E, the present invention is not limited to this, and the frame lines may not be displayed.

このうち、図3(a)は、文字列の右側に文字切れが生じた例を示している。
図3(a)では、文字列M21が、表示領域H21に対し長すぎるために、文字列M21の右側が表示領域H21からはみ出し、その結果、表示されない例を示している。これは、文字列が1行であり、文字列を左側から右側に向けて記載する言語の場合に生じやすい。この言語は、例えば、日本語、英語、独語、仏語等である。
Of these, FIG. 3(a) shows an example in which a character break occurs on the right side of a character string.
FIG. 3A shows an example in which the character string M21 is too long for the display area H21, so that the right side of the character string M21 protrudes from the display area H21, and as a result, is not displayed. This is likely to occur in languages where the character string is on one line and is written from left to right. This language is, for example, Japanese, English, German, French, etc.

また、図3(b)は、文字列の左側に文字切れが生じた例を示している。
図3(b)では、文字列M22が、表示領域H22に対し長すぎるために、文字列M22の左側が表示領域H22からはみ出し、表示されない例を示している。これは、文字列が1行であり、文字列を右側から左側に向けて記載する言語の場合に生じやすい。この言語は、例えば、アラビア語である。
Further, FIG. 3(b) shows an example in which a character break occurs on the left side of the character string.
FIG. 3B shows an example in which the character string M22 is too long for the display area H22, so that the left side of the character string M22 protrudes from the display area H22 and is not displayed. This is likely to occur in languages where the character string is on one line and is written from right to left. This language is, for example, Arabic.

さらに、図3(c)~(d)は、文字列の下側に文字切れが生じた例を示している。
図3(c)では、文字列M23の文字が、表示領域H23に対し大きすぎるために、文字列M23の下側が表示されない例を示している。
また、図3(d)では、文字列M24が、表示領域H24に対し長すぎるために、文字列M24の下側の一部が表示されない例を示している。これは、文字列が複数行からなる場合に生じやすい。
Furthermore, FIGS. 3(c) to 3(d) show examples in which a character break occurs at the bottom of a character string.
FIG. 3C shows an example in which the lower side of the character string M23 is not displayed because the characters of the character string M23 are too large for the display area H23.
Further, FIG. 3D shows an example in which the lower part of the character string M24 is not displayed because the character string M24 is too long for the display area H24. This tends to occur when the string consists of multiple lines.

そして、図3(e)は、文字列の上側に文字切れが生じた例を示している。
図3(e)では、文字列M25が、表示領域H25に対し大きすぎるために、文字列M25の上側の一部が表示されない例を示している。これは、文字列をアクセント記号を用いる言語で記載する場合に生じやすい。ここでは、「AOU」の各文字の上側にアクセント記号「‥」が存在するが、それが表示されていない。アクセント記号を用いる言語は、例えば、独語や仏語である。
FIG. 3(e) shows an example in which a character break occurs at the upper side of the character string.
FIG. 3E shows an example in which the upper part of the character string M25 is not displayed because the character string M25 is too large for the display area H25. This is likely to occur when character strings are written in a language that uses accent marks. Here, there is an accent mark "..." above each character of "AOU", but it is not displayed. Examples of languages that use accent marks include German and French.

この現象を防止するためには、アプリケーションソフトウェアの開発者が、それぞれの画面をチェックして、文字切れが生じているか否かを目視で確認する方法がある。しかし、アプリケーションソフトウェアで使用される画面の数は、膨大である。そして、図3に示すように、1画面の中で表示される文字列の数は、多大である。さらに、翻訳される言語毎に、確認するのは、膨大な工数が必要となる。そのため、アプリケーションソフトウェアの開発者の負担が多大となる。
さらに、この現象を防止するのに、文字列が占める領域サイズを計算し、その領域に収まるように翻訳するという方法もある。しかし、この方法でも、確実に文字切れを防止できるわけではないので、同様に目視での確認作業が必要となる。
そこで本実施の形態では、情報処理装置10を、以下の構成にすることで、アプリケーションソフトウェアの開発者の負担の軽減を図っている。
In order to prevent this phenomenon, there is a method in which the developer of the application software checks each screen and visually confirms whether or not characters are cut off. However, the number of screens used by application software is enormous. As shown in FIG. 3, the number of character strings displayed on one screen is large. Furthermore, checking each translated language requires a huge amount of man-hours. Therefore, the burden on the application software developer is heavy.
Furthermore, to prevent this phenomenon, there is a method of calculating the size of the area occupied by the character string and translating it so that it fits within that area. However, even with this method, it is not possible to reliably prevent character breakage, so visual confirmation is required as well.
Therefore, in this embodiment, the information processing device 10 is configured as follows to reduce the burden on the application software developer.

<情報処理装置10の機能構成の説明>
[第1の実施形態]
ここでは、まず、情報処理装置10の機能構成の第1の実施形態について説明を行う。
第1の実施形態では、情報処理装置10は、文字列が上記表示領域に収まらない場合を検知し、開発者に提示する。
<Description of functional configuration of information processing device 10>
[First embodiment]
Here, first, a first embodiment of the functional configuration of the information processing device 10 will be described.
In the first embodiment, the information processing device 10 detects a case where a character string does not fit within the display area, and presents the case to the developer.

図4は、第1の実施形態の情報処理装置10の機能構成例について説明したブロック図である。
なお、ここでは、情報処理装置10が有する種々の機能のうち本実施の形態に関係するものを選択して図示している。
FIG. 4 is a block diagram illustrating an example of the functional configuration of the information processing device 10 of the first embodiment.
Note that, out of the various functions that the information processing device 10 has, those related to this embodiment are selected and illustrated here.

情報処理装置10は、表示領域を抽出する抽出部11と、表示領域を拡張した拡張領域を設定する設定部12と、表示領域と拡張領域との位置合わせを行う位置合わせ部13と、表示領域と拡張領域とで文字列を表示したときの差分の画像である差分画像から、文字列が表示領域に収まるか否かを検知する検知部14と、画面の保存を行う保存部15と、画面を表示する制御を行う表示制御部16と、を備える、 The information processing device 10 includes an extraction unit 11 that extracts a display area, a setting unit 12 that sets an expanded area that is an expanded display area, an alignment unit 13 that aligns the display area and the expanded area, and a display area. A detection unit 14 detects whether or not a character string fits within the display area based on a difference image that is a difference image when the character string is displayed in the display area and the extended area; a storage unit 15 that stores the screen; a display control unit 16 that controls displaying the

抽出部11は、文字列を表示する領域である表示領域を抽出する。表示領域は、例えば、図3に示した表示領域H21~H25である。抽出部11は、文字切れが生じているか否かの確認対象となる画面の中で、文字列を表示する表示領域を検索する。そして、その表示領域の情報を取得する。 The extraction unit 11 extracts a display area that is an area for displaying a character string. The display areas are, for example, display areas H21 to H25 shown in FIG. 3. The extraction unit 11 searches for a display area in which a character string is to be displayed in a screen that is the target of checking whether or not character breaks have occurred. Then, information about that display area is acquired.

設定部12は、設定手段の一例であり、表示領域を拡張した領域である拡張領域を設定する。詳しくは後述するが、拡張領域は、表示領域を含み、表示領域を上下左右の4方向の少なくとも1方向に向け拡張した領域である。何れの方向に拡張するかは、文字列が1行であるか、複数行であるかにより決定される。また、言語の種類により決定される。 The setting unit 12 is an example of a setting means, and sets an expanded area that is an expanded area of the display area. As will be described in detail later, the expanded area is an area that includes the display area and is expanded in at least one of the four directions, ie, up, down, left, and right. The direction in which to expand is determined depending on whether the character string is one line or multiple lines. It is also determined by the type of language.

位置合わせ部13は、位置合わせ手段の一例であり、表示領域と拡張領域とを位置合わせする。位置合わせ部13は、検知部14で差分画像を作成するために、表示領域と拡張領域との位置合わせを行う。詳しくは後述するが、位置合わせ部13は、言語に合わせて位置合わせを変更する。 The alignment unit 13 is an example of alignment means, and aligns the display area and the expansion area. The positioning unit 13 performs positioning between the display area and the expansion area in order for the detection unit 14 to create a difference image. As will be described in detail later, the positioning unit 13 changes the positioning according to the language.

検知部14は、検知手段の一例であり、差分画像が検出されたときに、表示領域に表示領域で表示される文字列が収まらないことを検知する。そのために、検知部14は、差分画像を作成する。表示領域および拡張領域に表示領域で表示される文字列を表示したときの、それぞれの画像の差分の画像である。即ち、表示領域で文字列が収まりきらず、文字切れが生じているときでも、この部分を、拡張領域では、含ませることができる。そのため、差分画像は、文字切れが生じ、表示領域に表示できない部分が含まれる画像となる。対して、文字切れが生じていないときは、表示領域に文字列が全て収まるため、差分画像は、空白の画像となる。
そして、検知部14は、差分画像を基に、上記文字切れが生じていることを検知する。詳しくは後述するが、差分画像として何らかの画像が生じたときは、検知部14は、上記文字切れが生じていると判断する。対して、差分画像が、空白の画像である場合は、文字切れが生じていないと判断する。
The detection unit 14 is an example of a detection means, and detects that the character string displayed in the display area does not fit within the display area when a difference image is detected. For this purpose, the detection unit 14 creates a difference image. This is an image of the difference between each image when the character string displayed in the display area is displayed in the display area and the expansion area. That is, even when a character string cannot fit in the display area and a character string is cut off, this portion can be included in the expanded area. Therefore, the difference image becomes an image in which characters are cut off and includes portions that cannot be displayed in the display area. On the other hand, when no character breaks occur, the entire character string fits within the display area, so the difference image becomes a blank image.
Then, the detection unit 14 detects the occurrence of the character cutoff based on the difference image. As will be described in detail later, when any image is generated as a difference image, the detection unit 14 determines that the above-mentioned character cutoff has occurred. On the other hand, if the difference image is a blank image, it is determined that no character breaks have occurred.

保存部15は、差分画像を保存する。また、差分画像を、赤色、太字、背景の着色等で強調した強調画像として保存してもよい。
表示制御部16は、開発者に対し、差分画像を提示する画像を表示装置20に表示する。
抽出部11、設定部12、位置合わせ部13、検知部14、および表示制御部16の各機能は、上述したCPUにより実現することができる。また、保存部15の機能は、上述したストレージにより実現することができる。
The storage unit 15 stores the difference image. Alternatively, the difference image may be saved as an emphasized image that is emphasized using red, bold, colored background, or the like.
The display control unit 16 displays on the display device 20 an image that presents the difference image to the developer.
The functions of the extraction section 11, setting section 12, alignment section 13, detection section 14, and display control section 16 can be realized by the above-mentioned CPU. Furthermore, the functions of the storage unit 15 can be realized by the storage described above.

次に、第1の実施形態における情報処理装置10の動作の説明を行う。
図5は、第1の実施形態における情報処理装置10の動作を説明したフローチャートである。
まず、表示制御部16が、アプリケーションソフトウェアの画面の中から、確認を行いたい画面として、文字切れの検査の対象となる対象画面を、表示装置20に表示する(ステップ101)。この画面は、例えば、ブラウザ等を使用して表示することができる。
次に、保存部15が、表示装置20に表示した画面の画像情報をいったん保存する(ステップ102)。
Next, the operation of the information processing device 10 in the first embodiment will be explained.
FIG. 5 is a flowchart illustrating the operation of the information processing device 10 in the first embodiment.
First, the display control unit 16 displays, on the display device 20, a target screen to be inspected for broken characters as a screen to be checked from among the screens of the application software (step 101). This screen can be displayed using a browser or the like, for example.
Next, the storage unit 15 temporarily stores the image information of the screen displayed on the display device 20 (step 102).

さらに、抽出部11が、対象画面中の表示領域を検索する(ステップ103)。即ち、抽出部11は、画面中で文字列を表示する領域を検索する。具体的には、抽出部11は、例えば、DOM(Document Object Model)から、テキストを表示する領域を見つけ出す。
次に、抽出部11は、表示領域のプロパティを取得する(ステップ104)。このプロパティは、表示領域の位置および大きさを示す情報である。
Furthermore, the extraction unit 11 searches for a display area in the target screen (step 103). That is, the extraction unit 11 searches the screen for an area where the character string is displayed. Specifically, the extraction unit 11 finds, for example, an area in which text is to be displayed from a DOM (Document Object Model).
Next, the extraction unit 11 obtains the properties of the display area (step 104). This property is information indicating the position and size of the display area.

そして、設定部12は、このプロパティと同様のプロパティを有するテスト表示領域を作成する(ステップ105)。
次に、設定部12は、文字列が複数行であるか否かを判断する(ステップ106)。
その結果、文字列が複数行である場合(ステップ106でYes)、設定部12は、テスト表示領域を拡張した領域である拡張領域として、テスト表示領域の高さを大きくしたものを作成する(ステップ107)。
対して、文字列が複数行でない場合(ステップ106でNo)、即ち、文字列が1行である場合、設定部12は、拡張領域として、テスト表示領域の高さおよび幅を大きくしたものを作成する(ステップ108)。
Then, the setting unit 12 creates a test display area having properties similar to this property (step 105).
Next, the setting unit 12 determines whether the character string has multiple lines (step 106).
As a result, if the character string has multiple lines (Yes in step 106), the setting unit 12 creates an expanded area of the test display area with an increased height ( Step 107).
On the other hand, if the character string is not multiple lines (No in step 106), that is, if the character string is one line, the setting unit 12 sets the test display area to a larger height and width as an expanded area. Create (step 108).

次に、設定部12は、文字列を記載する言語が、アラビア語であるか否かを判断する(ステップ109)。
その結果、言語が、アラビア語であった場合(ステップ109でYes)、位置合わせ部13は、テスト表示領域と拡張領域とを右側を起点となるように位置合わせを行い、両者を重ね合わせる(ステップ110)。
対して、言語が、アラビア語でない場合(ステップ109でNo)、位置合わせ部13は、テスト表示領域と拡張領域とを左側を起点となるように位置合わせを行い、両者を重ね合わせる(ステップ111)。
Next, the setting unit 12 determines whether the language in which the character string is written is Arabic (step 109).
As a result, if the language is Arabic (Yes in step 109), the alignment unit 13 aligns the test display area and the expansion area so that the right side is the starting point, and overlaps the two ( Step 110).
On the other hand, if the language is not Arabic (No in step 109), the alignment unit 13 aligns the test display area and the extended area starting from the left side, and overlaps the two (step 111). ).

次に、検知部14が、テスト表示領域と拡張領域との差分画像を作成する(ステップ112)。
さらに、検知部14は、差分画像から文字切れを検知する(ステップ113)。
そして、検知部14が、文字切れを検知した場合(ステップ114でYes)、保存部15は、差分画像を保存する(ステップ115)。
Next, the detection unit 14 creates a difference image between the test display area and the expanded area (step 112).
Furthermore, the detection unit 14 detects cut-off characters from the difference image (step 113).
Then, when the detection unit 14 detects a character cutoff (Yes in step 114), the storage unit 15 stores the difference image (step 115).

対して、検知部14が、文字切れを検知しなかった場合(ステップ114でNo)、およびステップ115の後は、対象画面中で、検査をしていない表示領域があるか否かを判断する(ステップ116)。
その結果、検査をしていない表示領域がある場合(ステップ116でYes)、ステップ104に戻り、別の表示領域について同様の処理を行う。
対して、検査をしていない表示領域がない場合(ステップ116でNo)、表示制御部16は、差分画像を基に、文字切れ箇所を強調した強調画像を作成する(ステップ117)。なお、この強調画像は、保存部15に保存される。
On the other hand, if the detection unit 14 does not detect a character break (No in step 114), and after step 115, it is determined whether there is a display area that has not been inspected in the target screen. (Step 116).
As a result, if there is a display area that has not been inspected (Yes at step 116), the process returns to step 104 and the same process is performed for another display area.
On the other hand, if there is no display area that has not been inspected (No in step 116), the display control unit 16 creates an emphasized image that emphasizes the cut-off portion of the characters based on the difference image (step 117). Note that this emphasized image is stored in the storage unit 15.

そして、抽出部11は、まだ検査をしていない画面があるか否かを判断する(ステップ118)。
その結果、まだ検査をしていない画面がある場合(ステップ118でYes)、ステップ101に戻り、別の画面を対象画面とし、同様の処理を行う。
対して、検査をしていない画面がない場合(ステップ118でNo)、一連の処理を終了する。
Then, the extraction unit 11 determines whether there are any screens that have not been inspected yet (step 118).
As a result, if there is a screen that has not been inspected yet (Yes at step 118), the process returns to step 101, and the same process is performed using another screen as the target screen.
On the other hand, if there is no screen that has not been inspected (No in step 118), the series of processing ends.

その後、表示制御部16は、表示装置20に、強調画像を表示することができる。また、ポップアップ表示で文字切れを検知した箇所を表示することもできる。これを見た開発者は、実際に文字切れが生じているか否かを確認する。そして、文字切れが生じていた場合は、表示領域や周囲のオブジェクトの大きさや位置の調整を行い、正常に文字列が表示されるようにする。また、翻訳等を変更し、文字列を短くする変更を行ってもよい。 Thereafter, the display control unit 16 can display the emphasized image on the display device 20. It is also possible to display a pop-up display where text breaks are detected. The developer sees this and checks whether or not the characters are actually cut off. If the characters are cut off, the size and position of the display area and surrounding objects are adjusted so that the character string is displayed correctly. Alternatively, the translation or the like may be changed to shorten the character string.

図6(a)~(b)、図7(a)~(b)、図8(a)~(b)、および図9(a)~(b)は、図5のステップ110~ステップ113で行う処理について、さらに詳しく説明した図である。 6(a) to (b), FIG. 7(a) to (b), FIG. 8(a) to (b), and FIG. 9(a) to (b) are shown in steps 110 to 113 in FIG. FIG. 2 is a diagram illustrating in more detail the processing performed in FIG.

このうち、図6(a)~(b)は、文字列M61が1行であり、文字列M61を左側から右側に向けて記載する言語であるときに、文字切れを検知する場合を示している。この場合、文字列M61は、日本語であり、「あいうえおかきくけこさしすせ」の文字からなる。
図6(a)は、テスト表示領域H61に対し、高さおよび幅を大きくした拡張領域K61を設定した場合を示している。この場合、位置合わせ部13は、テスト表示領域H61と拡張領域K61とを左側を起点となるように位置合わせを行い、両者を重ね合わせる。図示するように、文字列M61の最後の文字である「せ」の部分が、テスト表示領域H61から右側にはみ出し、文字切れが生じることがわかる。
また、図6(b)は、テスト表示領域H61と拡張領域K61との差分画像を作成した例を示している。この場合、文字列M61の最後の文字である「せ」の部分が、差分画像S61として検出される。
Of these, FIGS. 6(a) and 6(b) show the case where a character string M61 is one line long and a character break is detected in a language where the character string M61 is written from left to right. There is. In this case, the character string M61 is in Japanese and consists of the characters ``Ai ue okaki ke ko sashi suse''.
FIG. 6A shows a case where an extended area K61 with increased height and width is set for the test display area H61. In this case, the alignment unit 13 aligns the test display area H61 and the expansion area K61 so that the left side is the starting point, and superimposes both. As shown in the figure, it can be seen that the last character of the character string M61, ``SE'', protrudes to the right from the test display area H61, resulting in a character break.
Further, FIG. 6(b) shows an example in which a difference image between the test display area H61 and the expansion area K61 is created. In this case, the last character "se" of the character string M61 is detected as the difference image S61.

また、図7(a)~(b)は、文字列M71が1行であり、文字列M71を右側から左側に向けて記載するアラビア語であるときに、文字切れを検知する場合を示している。
図7(a)は、テスト表示領域H71に対し、高さおよび幅を大きくした拡張領域K71を設定した場合を示している。この場合、位置合わせ部13は、テスト表示領域H71と拡張領域K71とを右側を起点となるように位置合わせを行い、両者を重ね合わせる。図示するように、文字列M71の後半部分が、テスト表示領域H71から左側にはみ出し、文字切れが生じることがわかる。
また、図7(b)は、テスト表示領域H71と拡張領域K71との差分画像を作成した例を示している。この場合、文字列M71の後半部分が、差分画像S71として検出される。
Furthermore, FIGS. 7(a) and 7(b) show the case where a character break is detected when the character string M71 is in one line and is written in Arabic from the right side to the left side. There is.
FIG. 7A shows a case where an expanded area K71 with increased height and width is set for the test display area H71. In this case, the alignment unit 13 aligns the test display area H71 and the expansion area K71 so that the right side is the starting point, and superimposes both. As shown in the figure, it can be seen that the second half of the character string M71 protrudes to the left from the test display area H71, resulting in cut-off of characters.
Moreover, FIG. 7(b) shows an example in which a difference image between the test display area H71 and the expansion area K71 is created. In this case, the latter half of the character string M71 is detected as the difference image S71.

さらに、図8(a)~(b)は、文字列M81が複数行であるときに、文字切れを検知する場合を示している。
図8(a)は、テスト表示領域H81に対し、高さを大きくした拡張領域K81を設定した場合を示している。図示するように、文字列M81の後半部分が、テスト表示領域H81から下側にはみ出し、文字切れが生じることがわかる。
また、図8(b)は、テスト表示領域H81と拡張領域K81との差分画像を作成した例を示している。この場合、文字列M81の後半部分が、差分画像S81として検出される。
Furthermore, FIGS. 8(a) and 8(b) show the case where a character break is detected when the character string M81 has multiple lines.
FIG. 8A shows a case where an extended area K81 with a larger height is set for the test display area H81. As shown in the figure, it can be seen that the latter half of the character string M81 protrudes downward from the test display area H81, resulting in character breakage.
Further, FIG. 8(b) shows an example in which a difference image between the test display area H81 and the expansion area K81 is created. In this case, the latter half of the character string M81 is detected as the difference image S81.

そして、図9(a)~(b)は、文字列M91が1行であり、文字列M91を記載する言語がアクセント記号を用いる言語であるときに、文字切れを検知する場合を示している。この場合、文字列M91は、独語である。
図9(a)は、テスト表示領域H91に対し、高さおよび幅を大きくした拡張領域K91を設定した場合を示している。この場合、位置合わせ部13は、テスト表示領域H91と拡張領域K91とを左側を起点となるように位置合わせを行い、両者を重ね合わせる。図示するように、文字列M91のアクセント記号の部分が、テスト表示領域H91から上側にはみ出し、文字切れが生じることがわかる。
また、図9(b)は、テスト表示領域H91と拡張領域K91との差分画像を作成した例を示している。この場合、文字列M91のアクセント記号の部分が、差分画像S91として検出される。
FIGS. 9(a) and 9(b) show a case where a character string M91 is one line long and a character break is detected when the language in which the character string M91 is written is a language that uses accent marks. . In this case, the character string M91 is in German.
FIG. 9(a) shows a case where an extended area K91 with increased height and width is set for the test display area H91. In this case, the alignment unit 13 aligns the test display area H91 and the expansion area K91 so that the left side is the starting point, and superimposes both. As shown in the figure, it can be seen that the accent mark portion of the character string M91 protrudes upward from the test display area H91, resulting in character breakage.
Further, FIG. 9(b) shows an example in which a difference image between the test display area H91 and the expansion area K91 is created. In this case, the accent mark portion of the character string M91 is detected as the difference image S91.

なお、拡張領域には、文字切れが生じた部分の全てを含ませる必要はなく、少なくとも一部を含ませるようにすればよい。つまり、文字切れを検知するためには、文字切れが生じた部分の一部を差分画像として検出すれば足りる。また、文字切れが生じた部分の文字の意味などを識別する必要はなく、何らかの差分画像が検出された場合は、文字切れが生じたことを検知する。 Note that the expanded area does not need to include all of the portion where the character break occurs, but may include at least a portion of the portion. In other words, in order to detect a character break, it is sufficient to detect a part of the part where the character break occurs as a difference image. Furthermore, there is no need to identify the meaning of the characters in the part where the character is cut off, and if any difference image is detected, it is detected that the character has been cut off.

第1の実施形態では、表示領域を拡張した拡張領域を設定し、表示領域と拡張領域との差分画像を検出することで、文字切れを検知する。これにより、文字切れを目視で確認する場合に比較して、ソフトウェアの開発者の負担を軽減させることができる。 In the first embodiment, an expanded area is set by expanding the display area, and a difference image between the display area and the expanded area is detected to detect a character cutoff. This can reduce the burden on software developers compared to visually checking for character breaks.

また、設定部12は、文字列が1行であるか、複数行であるかにより、拡張領域の設定を変更する。このとき、設定部12は、文字列が複数行からなるときは、表示領域の高さを大きくした拡張領域を設定する。これにより、設定部12は、表示領域を下方向に拡張して拡張領域を設定することができる。図3(d)で説明したように、文字列が複数行からなるときは、文字列の下側に文字切れが生じやすい。よって、表示領域を下方向に拡張することで、文字切れが生じやすい領域に拡張領域を設定することができる。 Further, the setting unit 12 changes the settings of the expansion area depending on whether the character string is one line or multiple lines. At this time, when the character string consists of multiple lines, the setting unit 12 sets an expanded area in which the height of the display area is increased. Thereby, the setting unit 12 can expand the display area downward and set an expanded area. As explained in FIG. 3(d), when a character string consists of multiple lines, characters are likely to be cut off at the bottom of the character string. Therefore, by expanding the display area downward, it is possible to set an expanded area in an area where characters are likely to be cut off.

さらに、設定部12は、文字列が1行であるときに、拡張領域を文字列の言語に合わせて設定する。具体的には、文字列が1行であるときは、設定部12は、文字列を記載するときに文字列が延びる方向に表示領域を拡張して拡張領域を設定する。つまり、幅方向に拡張して拡張領域を設定する。図3(a)~(b)で説明したように、文字列が1行であるときは、文字列の右側や左側に文字切れが生じやすい。よって、表示領域を幅方向に拡張することで、文字切れが生じやすい領域に拡張領域を設定することができる。
また、表示領域を、さらに高さ方向に拡張することで、図3(c)で説明したように、文字の文字が、表示領域に対し大きすぎるような場合も、文字切れを検知できる。
また、図3(e)で説明したように、独語や仏語のようにアクセント記号がある言語の場合は、文字列の右側のみならず、文字列の上側に文字切れが生じやすい。よって、表示領域を幅方向だけでなく、高さ方向に拡張することで、文字切れが生じやすい領域に拡張領域を設定することができる。
Furthermore, when the character string is one line, the setting unit 12 sets the expansion area according to the language of the character string. Specifically, when the character string is one line, the setting unit 12 sets an expanded area by expanding the display area in the direction in which the character string extends when writing the character string. In other words, the expanded area is set by expanding in the width direction. As described with reference to FIGS. 3(a) and 3(b), when a character string consists of one line, characters are likely to be cut off on the right or left side of the character string. Therefore, by expanding the display area in the width direction, it is possible to set an expanded area in an area where characters are likely to be cut off.
Further, by further expanding the display area in the height direction, as explained in FIG. 3C, even if the characters are too large for the display area, it is possible to detect cut-off characters.
Furthermore, as explained with reference to FIG. 3E, in languages with accent marks such as German and French, character breaks tend to occur not only on the right side of the character string but also on the upper side of the character string. Therefore, by expanding the display area not only in the width direction but also in the height direction, it is possible to set an expansion area in an area where characters are likely to be cut off.

また、位置合わせ部13は、文字列の言語に合わせて位置合わせを変更する。即ち、位置合わせ部13は、文字列を記載するときに最初の文字となる位置に位置合わせする。具体的には、図6(a)で説明したように、日本語や英語のように、文字列を左側から右側に向けて記載する場合は、位置合わせ部13は、テスト表示領域H61と拡張領域K61とを左側を起点となるように位置合わせを行う。逆に、図7(a)で説明したように、アラビア語のように、文字列を右側から左側に向けて記載する場合は、位置合わせ部13は、テスト表示領域H71と拡張領域K71とを右側を起点となるように位置合わせを行う。これにより、文字切れが生じやすい領域に拡張領域を設定することができる。 Further, the positioning unit 13 changes the positioning according to the language of the character string. That is, the alignment unit 13 aligns the character string to the position of the first character when writing the character string. Specifically, as explained in FIG. 6(a), when writing character strings from the left side to the right side, as in Japanese or English, the positioning unit 13 is configured to extend the test display area H61. The area K61 is aligned so that the left side becomes the starting point. On the other hand, as explained in FIG. 7A, when a character string is written from the right side to the left side, as in Arabic, the alignment unit 13 separates the test display area H71 and the expansion area K71. Align so that the right side is the starting point. As a result, an expansion area can be set in an area where characters are likely to be cut off.

[第2の実施形態]
次に、情報処理装置10の機能構成の第2の実施形態について説明を行う。
第2の実施形態では、情報処理装置10は、文字切れを検知した場合、文字切れが生じないように修正を行う。
[Second embodiment]
Next, a second embodiment of the functional configuration of the information processing device 10 will be described.
In the second embodiment, when the information processing device 10 detects a character cutoff, it performs correction so that the character cutout does not occur.

図10は、第2の実施形態の情報処理装置10の機能構成例について説明したブロック図である。
図10に図示した情報処理装置10の機能構成は、図4に図示したものに対し、修正部17が加わる点で相違し、他は同様である。よって、以後、修正部17の機能を中心に説明を行う。
FIG. 10 is a block diagram illustrating an example of the functional configuration of the information processing device 10 according to the second embodiment.
The functional configuration of the information processing apparatus 10 illustrated in FIG. 10 is different from that illustrated in FIG. 4 in that a modification section 17 is added, and the other points are the same. Therefore, the following description will focus on the functions of the modification unit 17.

修正部17は、修正手段の一例であり、差分画像が検出されたときに、差分画像が生じないように、修正する。
具体的には、例えば、表示領域の大きさを変更する。つまり、文字切れが生じる方向に対し、表示領域の大きさを拡張する。これにより、文字を全て表示領域内に表示することができる。しかし、拡張の対象となる表示領域の周囲には、他の表示領域など、他のオブジェクトが存在するのが一般的である。そのため、修正部17は、表示領域の周囲に表示されるオブジェクトにより修正を行うか否かを決定することが好ましい。つまり、修正部17は、表示領域の大きさを拡張した結果、周囲のオブジェクトと重なりが生じるなど周囲のオブジェクトに影響を与える場合は、拡張を行わない。一方、修正部17は、周囲のオブジェクトに影響を与えない場合は、拡張を行うようにする。
The correction unit 17 is an example of a correction unit, and when a difference image is detected, corrects it so that a difference image does not occur.
Specifically, for example, the size of the display area is changed. In other words, the size of the display area is expanded in the direction in which characters are cut off. This allows all characters to be displayed within the display area. However, other objects such as other display areas generally exist around the display area to be expanded. Therefore, it is preferable that the modification unit 17 determines whether or not to perform modification based on objects displayed around the display area. In other words, the modification unit 17 does not expand the size of the display area if it affects surrounding objects, such as causing overlap with surrounding objects. On the other hand, the modification unit 17 performs expansion if it does not affect surrounding objects.

また、例えば、OKボタンとキャンセルボタンとが並んで表示されるときに、キャンセルボタンだけを拡張すると、隣接するOKボタンとのバランスが崩れ、不自然な表示となりやすい。このとき、修正部17は、表示領域の拡張を行わない。よって、この場合も、修正部17は、表示領域の周囲に表示されるオブジェクトにより修正を行うか否かを決定する、と言うことができる。またこれは、表示領域がボタンの場合は、修正部17は、拡張を行わないと言うこともできる。つまり、修正部17は、周囲に表示されるオブジェクトの種類により修正を行うか否かを決定する、と言うこともできる。 Further, for example, when an OK button and a cancel button are displayed side by side, if only the cancel button is expanded, the balance with the adjacent OK button will be lost, resulting in an unnatural display. At this time, the modification unit 17 does not expand the display area. Therefore, in this case as well, it can be said that the modification unit 17 determines whether or not to perform modification based on the objects displayed around the display area. This can also be said to mean that the modification unit 17 does not perform expansion when the display area is a button. In other words, it can be said that the modification unit 17 determines whether or not to perform modification depending on the type of objects displayed around the object.

なお、修正部17が表示領域の拡張を行った場合は、開発者に対し、修正を行った旨を、強調画像やポップアップ表示などで提示するようにしてもよい。これにより、開発者は、正確に修正が行われたか否かを、確認することができる。また、修正部17が修正を行わないことを決定した場合、同様に開発者に対し提示するようにしてもよい。これを見た開発者は、第1の実施形態と同様に、表示領域や周囲のオブジェクトの大きさや位置の調整を行い、正常に文字列が表示されるようにする。 Note that when the modification unit 17 expands the display area, the modification may be notified to the developer using a highlighted image, a pop-up display, or the like. This allows the developer to confirm whether or not the modification has been made correctly. Furthermore, if the modification unit 17 decides not to perform modification, it may similarly be presented to the developer. After seeing this, the developer adjusts the size and position of the display area and surrounding objects so that the character string is displayed normally, as in the first embodiment.

また、他の修正方法として、表示領域に文字列が収まるように、修正部17は、文字列の言語への翻訳を変更することも考えられる。 Furthermore, as another modification method, the modification unit 17 may change the translation of the character string into a language so that the character string fits within the display area.

次に、第2の実施形態における情報処理装置10の動作の説明を行う。
図11は、第2の実施形態における情報処理装置10の動作を説明したフローチャートである。
図11のステップ201~ステップ216、およびステップ219~ステップ220は、図5のステップ101~ステップ116、およびステップ117~ステップ118と同様であるので、説明を省略する。
Next, the operation of the information processing device 10 in the second embodiment will be explained.
FIG. 11 is a flowchart illustrating the operation of the information processing device 10 in the second embodiment.
Steps 201 to 216 and steps 219 to 220 in FIG. 11 are the same as steps 101 to 116 and steps 117 to 118 in FIG. 5, so a description thereof will be omitted.

図11のステップ217以後、修正部17は、文字切れが生じている表示領域について、表示領域の周囲に表示されるオブジェクトにより、修正ができるか否かを判断する(ステップ217)。
そして、修正ができると判断した場合(ステップ217でYes)、修正部17は、表示領域の大きさを拡張するなどの方法を用いて修正を行う(ステップ218)。
対して、修正ができないと判断した場合(ステップ217でNo)、修正部17は、修正を行わず、次のステップ219に移行する。この場合、表示領域の修正は、第1の実施形態と同様に、開発者が行う。
After step 217 in FIG. 11, the correction unit 17 determines whether or not the display area in which the characters are cut off can be corrected based on objects displayed around the display area (step 217).
If it is determined that the correction can be made (Yes in step 217), the correction unit 17 performs the correction using a method such as expanding the size of the display area (step 218).
On the other hand, if it is determined that modification is not possible (No in step 217), the modification unit 17 does not perform modification and proceeds to the next step 219. In this case, the display area is modified by the developer as in the first embodiment.

第2の実施形態では、第1の実施形態で挙げた効果に加えて、情報処理装置10により、いわば自動的に表示領域の修正を行うことができる。 In the second embodiment, in addition to the effects mentioned in the first embodiment, the information processing device 10 can automatically correct the display area.

上述した情報処理装置10では、アプリケーションソフトウェアの開発を行う場合について説明したが、これに限られるものではなく、文字列の表示を行うソフトウェアであれば、OSなどの基本ソフトウェアに対しても適用できる。
また、上述した情報処理装置10では、表示領域は、矩形状であったが、表示領域の形状は、これに限られるものではなく、円形、多角形など他の形状であってもよい。
In the information processing device 10 described above, the case where application software is developed has been described, but the present invention is not limited to this, and any software that displays character strings can be applied to basic software such as an OS. .
Further, in the information processing device 10 described above, the display area has a rectangular shape, but the shape of the display area is not limited to this, and may be other shapes such as a circle or a polygon.

また、上述した情報処理装置10では、CPUを一例とするプロセッサが処理を行う。よって、この情報処理装置10は、プロセッサを備え、プロセッサは、ソフトウェアを動作させるときに表示される画面中で文字列を表示する領域である表示領域を拡張した領域である拡張領域を設定し、表示領域および拡張領域に表示領域で表示される文字列を表示したときの、それぞれの画像の差分の画像である差分画像が検出されたときに、表示領域に表示領域で表示される文字列が収まらないことを検知する情報処理装置であると捉えることもできる。 Further, in the information processing device 10 described above, a processor, for example a CPU, performs processing. Therefore, this information processing device 10 includes a processor, and the processor sets an extended area that is an expanded area of the display area that is the area where character strings are displayed on the screen that is displayed when the software is operated, When the character string displayed in the display area is displayed in the display area and the expansion area, when a difference image that is a difference image between each image is detected, the character string displayed in the display area is displayed in the display area. It can also be thought of as an information processing device that detects when it does not fit.

<プログラムの説明>
ここで、以上説明を行った本実施の形態の情報処理装置10で行う処理は、例えば、ソフトウェア等のプログラムとして用意される。そして、ソフトウェアとハードウェア資源とが協働することにより実現される。このプログラムにより、文字切れを検知することができ、文字切れを目視で確認する場合に比較して、ソフトウェアの開発者の負担を軽減させることができる。
<Program description>
Here, the processing performed by the information processing apparatus 10 of the present embodiment described above is prepared as a program such as software, for example. This is realized through cooperation between software and hardware resources. This program can detect cut-off characters, reducing the burden on software developers compared to visually checking for cut-off characters.

よって、本実施の形態で、情報処理装置10が行う処理を実行するプログラムは、コンピュータに、ソフトウェアを動作させるときに表示される画面中で文字列を表示する領域である表示領域を拡張した領域である拡張領域を設定する設定機能と、表示領域および拡張領域に表示領域で表示される文字列を表示したときの、それぞれの画像の差分の画像である差分画像が検出されたときに、表示領域に表示領域で表示される文字列が収まらないことを検知する検知機能と、を実現させるためのプログラムとして捉えることもできる。 Therefore, in this embodiment, the program that executes the processing performed by the information processing device 10 is an area that is an expanded area of the display area that is the area where character strings are displayed on the screen that is displayed when the software is operated. When the display area and the extended area display the character string displayed in the display area, when a difference image is detected that is the difference between each image, the display It can also be viewed as a program that implements a detection function that detects when a character string displayed in a display area does not fit into an area.

なお、本実施の形態を実現するプログラムは、通信手段により提供することはもちろん、CD-ROM等の記録媒体に格納して提供することも可能である。 Note that the program for realizing this embodiment can of course be provided by communication means, and can also be provided by being stored in a recording medium such as a CD-ROM.

以上、本実施の形態について説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されない。上記実施の形態に、種々の変更または改良を加えたものも、本発明の技術的範囲に含まれることは、特許請求の範囲の記載から明らかである。 Although the present embodiment has been described above, the technical scope of the present invention is not limited to the scope described in the above embodiment. It is clear from the claims that various changes or improvements made to the above embodiments are also included within the technical scope of the present invention.

1…情報処理システム、10…情報処理装置、11…抽出部、12…設定部、13…位置合わせ部、14…検知部、15…保存部、16…表示制御部、20…表示装置 DESCRIPTION OF SYMBOLS 1... Information processing system, 10... Information processing device, 11... Extraction part, 12... Setting part, 13... Positioning part, 14... Detection part, 15... Storage part, 16... Display control part, 20... Display device

Claims (13)

ソフトウェアを動作させるときに表示される画面中で文字列を表示する領域である表示領域を拡張した領域である拡張領域を設定する設定手段と、
前記表示領域および前記拡張領域に当該表示領域で表示される文字列を表示したときの、それぞれの画像の差分の画像である差分画像が検出されたときに、当該表示領域に当該表示領域で表示される文字列が収まらないことを検知する検知手段と、
を備える情報処理装置。
a setting means for setting an extended area that is an expanded area of a display area that is an area for displaying character strings on a screen that is displayed when operating the software;
When a character string to be displayed in the display area is displayed in the display area and the expansion area, and a difference image that is a difference image between the respective images is detected, the character string to be displayed in the display area is displayed in the display area. a detection means for detecting that the character string to be displayed does not fit;
An information processing device comprising:
前記設定手段は、文字列が1行であるか、複数行であるかにより、前記拡張領域の設定を変更することを特徴とする請求項1に記載の情報処理装置。 The information processing apparatus according to claim 1, wherein the setting unit changes the setting of the expansion area depending on whether the character string is one line or multiple lines. 前記設定手段は、文字列が1行であるときに、前記拡張領域を文字列の言語に合わせて設定することを特徴とする請求項2に記載の情報処理装置。 3. The information processing apparatus according to claim 2, wherein the setting means sets the expansion area according to the language of the character string when the character string is one line. 前記設定手段は、前記言語で文字列を記載するときに文字列が延びる方向に前記表示領域を拡張して前記拡張領域を設定することを特徴とする請求項3に記載の情報処理装置。 4. The information processing apparatus according to claim 3, wherein the setting means sets the expansion area by expanding the display area in a direction in which the character string extends when writing the character string in the language. 前記設定手段は、文字列が複数行からなるときは、前記表示領域を下方向に拡張して前記拡張領域を設定することを特徴とする請求項2に記載の情報処理装置。 3. The information processing apparatus according to claim 2, wherein when the character string consists of multiple lines, the setting means expands the display area downward and sets the expansion area. 前記表示領域と前記拡張領域とを位置合わせする位置合わせ手段をさらに備え、
前記位置合わせ手段は、文字列の言語に合わせて位置合わせを変更することを特徴とする請求項1に記載の情報処理装置。
further comprising positioning means for positioning the display area and the expansion area,
2. The information processing apparatus according to claim 1, wherein the positioning means changes the positioning according to the language of the character string.
前記位置合わせ手段は、前記言語で文字列を記載するときに最初の文字となる位置に位置合わせすることを特徴とする請求項6に記載の情報処理装置。 7. The information processing apparatus according to claim 6, wherein the positioning means positions the first character when writing a character string in the language. 前記差分画像が検出されたときに、当該差分画像が生じないように修正する修正手段をさらに備えることを特徴とする請求項1に記載の情報処理装置。 2. The information processing apparatus according to claim 1, further comprising a correction unit that corrects when the difference image is detected so that the difference image does not occur. 前記修正手段は、前記表示領域の周囲に表示されるオブジェクトにより修正を行うか否かを決定することを特徴とする請求項8に記載の情報処理装置。 9. The information processing apparatus according to claim 8, wherein the modification means determines whether or not to perform modification based on objects displayed around the display area. 前記修正手段は、前記オブジェクトの種類により修正を行うか否かを決定することを特徴とする請求項9に記載の情報処理装置。 10. The information processing apparatus according to claim 9, wherein the modification means determines whether or not to perform modification based on the type of the object. 前記修正手段は、文字列の言語への翻訳を変更することを特徴とする請求項8に記載の情報処理装置。 9. The information processing apparatus according to claim 8, wherein the modification means changes the translation of the character string into a language. 画像を表示する表示装置と、
前記表示装置に表示される前記画像の制御を行う情報処理装置と、
を備え、
前記情報処理装置は、
ソフトウェアを動作させるときに表示される画面中で文字列を表示する領域である表示領域を拡張した領域である拡張領域を設定する設定手段と、
前記表示領域および前記拡張領域に当該表示領域で表示される文字列を表示したときの、それぞれの画像の差分の画像である差分画像が検出されたときに、当該表示領域に当該表示領域で表示される文字列が収まらないことを検知する検知手段と、
を備える情報処理システム。
a display device that displays an image;
an information processing device that controls the image displayed on the display device;
Equipped with
The information processing device includes:
a setting means for setting an extended area that is an expanded area of a display area that is an area for displaying character strings on a screen that is displayed when operating the software;
When a character string to be displayed in the display area is displayed in the display area and the expansion area, and a difference image that is a difference image between the respective images is detected, the character string to be displayed in the display area is displayed in the display area. a detection means for detecting that the character string to be displayed does not fit;
An information processing system equipped with.
コンピュータに、
ソフトウェアを動作させるときに表示される画面中で文字列を表示する領域である表示領域を拡張した領域である拡張領域を設定する設定機能と、
前記表示領域および前記拡張領域に当該表示領域で表示される文字列を表示したときの、それぞれの画像の差分の画像である差分画像が検出されたときに、当該表示領域に当該表示領域で表示される文字列が収まらないことを検知する検知機能と、
を実現させるためのプログラム。
to the computer,
A setting function that sets an extended area that is an expanded area of the display area that is the area where character strings are displayed on the screen that is displayed when the software is operated;
When a character string to be displayed in the display area is displayed in the display area and the expansion area, and a difference image that is a difference image between the respective images is detected, the character string to be displayed in the display area is displayed in the display area. A detection function that detects when a character string does not fit,
A program to make this happen.
JP2019189840A 2019-10-17 2019-10-17 Information processing device, information processing system and program Active JP7367451B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019189840A JP7367451B2 (en) 2019-10-17 2019-10-17 Information processing device, information processing system and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019189840A JP7367451B2 (en) 2019-10-17 2019-10-17 Information processing device, information processing system and program

Publications (2)

Publication Number Publication Date
JP2021064303A JP2021064303A (en) 2021-04-22
JP7367451B2 true JP7367451B2 (en) 2023-10-24

Family

ID=75488075

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019189840A Active JP7367451B2 (en) 2019-10-17 2019-10-17 Information processing device, information processing system and program

Country Status (1)

Country Link
JP (1) JP7367451B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7647331B2 (en) * 2021-05-27 2025-03-18 日産自動車株式会社 Operation screen design method, operation screen design device, and operation screen design program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008158643A (en) 2006-12-21 2008-07-10 Brother Ind Ltd Display inspection method, display inspection apparatus, and display inspection program
JP2019105910A (en) 2017-12-11 2019-06-27 三菱電機株式会社 Display verification apparatus, display verification method and display verification program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003058357A (en) * 2001-08-20 2003-02-28 Canon Inc Information processing apparatus, resource file creation method, storage medium, and program
JP4992216B2 (en) * 2005-09-21 2012-08-08 富士ゼロックス株式会社 Translation apparatus and program
JP2015050655A (en) * 2013-09-02 2015-03-16 ソニー株式会社 Information display device, information display method, and computer program
JP5878505B2 (en) * 2013-10-11 2016-03-08 日本電信電話株式会社 Error input detection device and error input detection program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008158643A (en) 2006-12-21 2008-07-10 Brother Ind Ltd Display inspection method, display inspection apparatus, and display inspection program
JP2019105910A (en) 2017-12-11 2019-06-27 三菱電機株式会社 Display verification apparatus, display verification method and display verification program

Also Published As

Publication number Publication date
JP2021064303A (en) 2021-04-22

Similar Documents

Publication Publication Date Title
US9501459B2 (en) Detecting influence caused by changing the source code of an application from which a document object model tree and cascading style sheet may be extracted
US10698557B2 (en) Automated screen captures
EP3557423B1 (en) System and method for testing electronic visual user interface outputs
JP5211193B2 (en) Translation display device
US10491756B2 (en) Information processing apparatus, information processing method, and non-transitory computer readable recording medium
JP2016033716A (en) Information processing apparatus, information processing method, and program
KR20050119116A (en) Enhanced readability with flowed bitmaps
US20130208294A1 (en) Image formation control device, control method and recording medium storing image formation control program
TWI407425B (en) Method for generating object properties related to a user interface
JP6543649B2 (en) Screen difference detection device and program
JP7367451B2 (en) Information processing device, information processing system and program
US20160239162A1 (en) System and Method for Determining Distances Among User Interface Elements
US11227096B2 (en) Error detection in text string within displayed layout
JP6476144B2 (en) Screen difference confirmation support device, screen difference confirmation support method, and program
JP2010262559A (en) GUI adjustment program, GUI adjustment apparatus, and information processing method.
US20230109433A1 (en) Test support method and information processing apparatus
JP2009087270A (en) Image processing device and program
EP2835796A2 (en) Information processing apparatus, programmable display apparatus, data processing method, and program
KR101546359B1 (en) Web page making system and method for maintaining compatibility of web browser and font
CN109445900B (en) Translation method and device for picture display
CN111914198A (en) Method, system and electronic equipment for realizing browser compatibility
Kumar et al. Accessibility evaluation of websites using WCAG tools and Cambridge Simulator
CN119948479A (en) Determines the properties of elements that can display content and adds them to the accessibility tree
JP2024103149A (en) Drawing comparison device
US10379970B2 (en) Automatic design discrepancy reporting

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220922

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230809

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20230912

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230925

R150 Certificate of patent or registration of utility model

Ref document number: 7367451

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150