[go: up one dir, main page]

JP7351468B1 - Text content providing system, text content providing method, computer program, and web file - Google Patents

Text content providing system, text content providing method, computer program, and web file Download PDF

Info

Publication number
JP7351468B1
JP7351468B1 JP2023037609A JP2023037609A JP7351468B1 JP 7351468 B1 JP7351468 B1 JP 7351468B1 JP 2023037609 A JP2023037609 A JP 2023037609A JP 2023037609 A JP2023037609 A JP 2023037609A JP 7351468 B1 JP7351468 B1 JP 7351468B1
Authority
JP
Japan
Prior art keywords
text content
kanji
text
content
code
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
JP2023037609A
Other languages
Japanese (ja)
Other versions
JP2024128578A (en
Inventor
純生 野田
Original Assignee
アルファサード株式会社
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 アルファサード株式会社 filed Critical アルファサード株式会社
Priority to JP2023037609A priority Critical patent/JP7351468B1/en
Application granted granted Critical
Publication of JP7351468B1 publication Critical patent/JP7351468B1/en
Publication of JP2024128578A publication Critical patent/JP2024128578A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

【課題】漢字に振り仮名がルビとして振られたウェブページの、スクリーンリーダなどのテキスト読上機能による読上げを、従来よりも確実に行うことができるようにする。【解決手段】ウェブサーバ2は、テキストコンテンツと、このテキストコンテンツの中の特定の部分とこの特定の部分に関する関連情報とを対応付ける対応関係情報とを、クライアントへ送信する。クライアント3Aは、特定の部分の近傍に関連情報を配置してテキストコンテンツを表示するための付加表示コードをテキストコンテンツおよび対応関係情報に基づいて生成し、選択的に付加表示コードに基づいて特定の部分の近傍に関連情報を配置した状態でまたは配置しない状態でテキストコンテンツをディスプレイに表示させる。【選択図】図1[Problem] To enable a text reading function such as a screen reader to read out aloud a web page in which kanji and furigana are assigned as ruby more reliably than before. A web server 2 transmits text content and correspondence information that associates a specific part of the text content with related information regarding the specific part to a client. The client 3A generates an additional display code for displaying text content by arranging related information near a specific part based on the text content and correspondence information, and selectively displays a specific part based on the additional display code. To display text content on a display with or without related information placed near the portion. [Selection diagram] Figure 1

Description

本発明は、ウェブページなどの形態で提供されるテキストコンテンツにルビなどの補足情報を付加する技術に関する。 The present invention relates to a technology for adding supplementary information such as ruby to text content provided in the form of a web page or the like.

日本語は、英語およびフランス語などの言語とは文法が大きく異なり、かつ、漢字、平仮名、および片仮名など多数の種類の文字を有する。したがって、日本語を母国語としない人(ノンネイティブ)にとって、日本語の文章を読むのが難しい。特に漢字は、読み方が数通りある場合があり、かつ、字数が膨大なので、覚えるのが大変である。しかし、日本で生活していると、日本語の文章を読まざるを得ないことがある。 Japanese has a very different grammar from languages such as English and French, and has many types of characters such as kanji, hiragana, and katakana. Therefore, it is difficult for people whose native language is not Japanese (non-native speakers) to read Japanese sentences. Kanji, in particular, can be read in several ways and have a huge number of characters, making it difficult to memorize them. However, when living in Japan, there are times when you have no choice but to read Japanese texts.

そこで、電子化された文章に含まれる漢字に読み仮名をルビとして振る技術が提案されている。例えば、引用文献1に記載されるテキスト表示装置は、テキスト表示処理を含むデータ処理を行うアプリケーション部と、前記アプリケーション部より入力されたテキストを解析して、該テキストに含まれる漢字部分に読み仮名(ルビ)を付加する読み仮名付加部と、を備える。前記アプリケーション部は、読み仮名(ルビ)を出力すると設定されている場合に、前記読み仮名付加部に対して表示対象のテキストを送信して読み仮名(ルビ)の付加を要求し、読み仮名(ルビ)付きのテキスト表示処理を行う。 Therefore, a technology has been proposed that assigns ruby pronunciations to the kanji characters included in digitized texts. For example, the text display device described in Cited Document 1 includes an application section that performs data processing including text display processing, and an application section that analyzes text input from the application section and adds pronunciations to kanji parts included in the text. (ruby). When the application section is set to output reading kana (ruby), the application section sends the text to be displayed to the reading kana addition section to request addition of reading kana (ruby), and outputs reading kana (ruby). Performs text display processing with ruby).

また、電子化された文章を人工の音声で読み上げる読上げ技術が提案されている。スクリーンリーダは、ディスプレイに表示された画面を読み上げソフトウェアであって、近年、パーソナルコンピュータ、タブレットコンピュータ、およびスマートフォンなどのオペレーティングシステムに標準的に装備されている。マイクロソフト社のWindows 8以降のオペレーティングシステムおよびアップル社のMac OS X v10.4以降のオペレーティングシステムには、日本語に対応したスクリーンリーダが装備されている。なお、「Windows」は登録商標である。 Furthermore, a reading-aloud technology has been proposed that reads out digitized text using an artificial voice. A screen reader is software that reads out the screen displayed on a display, and in recent years has become standard equipment in the operating systems of personal computers, tablet computers, smartphones, and the like. Microsoft's Windows 8 and later operating systems and Apple's Mac OS X v10.4 and later operating systems are equipped with screen readers that support Japanese. Note that "Windows" is a registered trademark.

そのほか、ウェブブラウザの機能拡張ソフトウェアとしてスクリーンリーダが提供されている。例えば、非特許文献1に記載されるソフトウェアは、ウェブブラウザの機能拡張ソフトウェアであって、ウェブブラウザによってアクセスしたウェブページの中の文章に漢字が混ざっていても、それを人工の音声で読み上げることができる。 In addition, screen readers are provided as software that enhances the functionality of web browsers. For example, the software described in Non-Patent Document 1 is a function extension software for web browsers that can read out aloud with an artificial voice even if kanji are mixed in the text in the web page accessed by the web browser. I can do it.

特開2009-163479号公報Japanese Patent Application Publication No. 2009-163479

LSD Software社「Read Aloud」,https://readaloud.app/LSD Software “Read Aloud”, https://readaloud.app/

ウェブページにおいて、漢字に読み仮名をルビとして振る場合は、rubyタグおよびrtタグが用いられる。 When assigning ruby readings to kanji on a web page, the ruby tag and rt tag are used.

しかし、読み仮名がルビとして振られたウェブページを従来の読上げ技術によって読み上げさせると、漢字および読み仮名の両方が読み上げられてしまう。例えば、図14に示すウェブページ51は、「さいきょう さいきょう かんぱ かんぱ これから あさ あさ にかけて ゆき ゆき の よそう よそう は…」と読み上げられてしまう。または、途中で、例えばルビの手間で、読上げが止まることがある。 However, when a web page with ruby pronunciations is read aloud using conventional reading technology, both the kanji and the kana pronunciations are read aloud. For example, the web page 51 shown in FIG. 14 is read out as ``From now on, from tomorrow to next morning, it's going to be snowy...''. Or, the reading may stop midway through, for example due to ruby trouble.

本発明は、このような問題点に鑑み、漢字に振り仮名がルビとして振られたウェブページの、スクリーンリーダなどのテキスト読上機能による読上げを、従来よりも確実に行うことができるようにすることを、目的とする。 In view of these problems, the present invention makes it possible to more reliably read aloud a web page in which furigana is assigned as ruby to kanji using a text reading function such as a screen reader than before. The purpose is to.

本発明の一形態に係るテキストコンテンツ提供システムは、伝達する内容を表わすテキストであるテキストコンテンツを提供するテキストコンテンツ提供システムであって、サーバと、クライアントと、を有し、前記サーバは、前記テキストコンテンツと、当該テキストコンテンツの中の漢字と当該漢字の読み仮名とを対応付ける対応関係情報とを、前記クライアントへ送信する送信手段、を有し、前記クライアントは、前記漢字の近傍に前記読み仮名を配置して前記テキストコンテンツを表示するための付加表示コードを前記テキストコンテンツおよび前記対応関係情報に基づいて生成する生成手段と、選択的に前記付加表示コードに基づいて前記漢字の近傍に前記読み仮名を配置した状態でまたは配置しない状態で前記テキストコンテンツをディスプレイに表示させる表示制御手段と、を有する。
A text content providing system according to one embodiment of the present invention is a text content providing system that provides text content that is text representing content to be transmitted, and includes a server and a client, and the server is configured to provide text content that is text representing content to be transmitted. a transmission means for transmitting content and correspondence information that associates a kanji in the text content with a pronunciation of the kanji to the client; generating means for generating an additional display code for placing and displaying the text content based on the text content and the correspondence relationship information; and selectively generating the reading kana in the vicinity of the kanji based on the additional display code. display control means for displaying the text content on the display with or without the text content being arranged.

本発明の一形態に係るウェブファイルは、伝達する内容を表わすテキストであるテキストコンテンツを補足情報とともに表示させるためのウェブファイルであって、前記テキストコンテンツを表示するためのコンテンツ部と、前記テキストコンテンツの中の漢字と当該漢字の読み仮名とを対応付ける対応関係情報を示す対応関係部と、前記漢字の近傍に前記読み仮名を前記補足情報として配置して前記テキストコンテンツを表示するための付加表示コードを前記テキストコンテンツおよび前記対応関係情報に基づいて生成する生成用スクリプトを外部スクリプトとして指定する指定コードを示す呼出部と、前記生成用スクリプトによって前記付加表示コードを生成する生成処理と、当該生成された付加表示コードを前記テキストコンテンツとともに示しかつ前記漢字の近傍に選択的に前記読み仮名を配置した状態でまたは配置しない状態で当該テキストコンテンツをディスプレイに表示させるように前記コンテンツ部を更新する更新処理とをコンピュータに実行させる更新用スクリプトを示す更新部と、を有する。 A web file according to one embodiment of the present invention is a web file for displaying text content, which is text representing content to be transmitted, together with supplementary information, and includes a content section for displaying the text content, and a content section for displaying the text content; a correspondence part indicating correspondence information that associates the kanji in the kanji with the pronunciation of the kanji, and an additional display code for displaying the text content by arranging the pronunciation of the kana as the supplementary information near the kanji . a calling unit indicating a specification code for specifying a generation script to be generated based on the text content and the correspondence relationship information as an external script; a generation process for generating the additional display code by the generation script; an update process of updating the content section so as to display the additional display code along with the text content and display the text content on the display with or without the reading kana selectively arranged near the kanji ; and an update section that indicates an update script that causes the computer to execute the above.

本発明によると、漢字に振り仮名がルビとして振られたウェブページの、スクリーンリーダなどのテキスト読上機能による読上げを、従来よりも確実に行うことができる。 According to the present invention, it is possible to more reliably read out aloud a web page in which kanji and furigana are assigned as ruby using a text reading function such as a screen reader than before.

ウェブページ提供システムの全体的な構成の例を示す図である。FIG. 1 is a diagram showing an example of the overall configuration of a web page providing system. ウェブサーバのハードウェア構成の例を示す図である。It is a diagram showing an example of the hardware configuration of a web server. クライアントまたはウェブページ編集端末のハードウェア構成の例を示す図である。It is a diagram showing an example of the hardware configuration of a client or a web page editing terminal. ウェブサーバの機能的構成の例を示す図である。FIG. 2 is a diagram illustrating an example of a functional configuration of a web server. ウェブページの例を示す図である。FIG. 2 is a diagram showing an example of a web page. HTMLファイルの例を示す図である。It is a diagram showing an example of an HTML file. ルビマップの例を示す図である。FIG. 3 is a diagram showing an example of a ruby map. ウェブページの例を示す図である。FIG. 2 is a diagram showing an example of a web page. HTMLファイルの例を示す図である。It is a diagram showing an example of an HTML file. 定義コードの例を示す図である。It is a figure which shows the example of a definition code. ウェブページの表示の処理の流れの例を説明するフローチャートである。12 is a flowchart illustrating an example of the flow of processing for displaying a web page. テキストペアコードの例を示す図である。It is a figure which shows the example of a text pair code. コンテンツコードの生成方法の例を示す図である。FIG. 3 is a diagram illustrating an example of a content code generation method. ウェブページにルビが振られた状態の例を示す図である。FIG. 3 is a diagram showing an example of a state in which ruby is applied to a web page. ウェブサーバの全体的な処理の流れの例を説明するフローチャートである。3 is a flowchart illustrating an example of the overall processing flow of a web server.

〔1.全体の構成〕
図1は、ウェブページ提供システム1の全体的な構成の例を示す図である。図2は、ウェブサーバ2のハードウェア構成の例を示す図である。図3は、クライアント3Aまたはウェブページ編集端末3Bのハードウェア構成の例を示す図である。
[1. Overall composition]
FIG. 1 is a diagram showing an example of the overall configuration of a web page providing system 1. As shown in FIG. FIG. 2 is a diagram showing an example of the hardware configuration of the web server 2. As shown in FIG. FIG. 3 is a diagram showing an example of the hardware configuration of the client 3A or the web page editing terminal 3B.

ウェブページ提供システム1は、ユーザへウェブページを提供するシステムであって、図1に示すように、ウェブサーバ2、1台または複数台のクライアント3A、ウェブページ編集端末3B、および通信回線4などによって構成される。 The web page providing system 1 is a system that provides web pages to users, and as shown in FIG. 1, includes a web server 2, one or more clients 3A, a web page editing terminal 3B, a communication line 4, etc. Consisted of.

ウェブサーバ2は、通信回線4を介してクライアント3Aおよびウェブページ編集端末3Bと通信することができる。通信回線4として、インターネット、LAN(Local Area Network)回線、公衆回線、または専用線などが用いられる。 The web server 2 can communicate with the client 3A and the web page editing terminal 3B via the communication line 4. As the communication line 4, the Internet, a LAN (Local Area Network) line, a public line, a private line, or the like is used.

ウェブサーバ2は、図2に示すようにメインプロセッサ21、RAM(Random Access Memory)22、ROM(Read Only Memory)23、補助記憶装置24、およびネットワークコントローラ25などによって構成され、クライアント3Aからの要求に応じてウェブページのファイルを配信する。 As shown in FIG. 2, the web server 2 includes a main processor 21, a RAM (Random Access Memory) 22, a ROM (Read Only Memory) 23, an auxiliary storage device 24, a network controller 25, etc., and handles requests from the client 3A. Deliver web page files accordingly.

ROM23または補助記憶装置24には、オペレーティングシステムおよびウェブページ管理プログラム20(図4参照)などがインストールされている。補助記憶装置24として、ハードディスクまたはSSD(Solid State Drive)などが用いられる。ウェブページ管理プログラム20については、後述する。 An operating system, a web page management program 20 (see FIG. 4), and the like are installed in the ROM 23 or the auxiliary storage device 24. As the auxiliary storage device 24, a hard disk, an SSD (Solid State Drive), or the like is used. The web page management program 20 will be described later.

RAM22は、ウェブサーバ2のメインメモリである。RAM22には、適宜、ROM23または補助記憶装置24からプログラムがロードされる。メインプロセッサ21は、RAM22にロードされたプログラムを実行する。 The RAM 22 is the main memory of the web server 2. A program is loaded into the RAM 22 from the ROM 23 or the auxiliary storage device 24 as appropriate. Main processor 21 executes a program loaded into RAM 22.

ネットワークコントローラ25は、TCP/IPなどのプロトコルでクライアント3Aおよびウェブページ編集端末3Bなどの装置と通信する。 The network controller 25 communicates with devices such as the client 3A and the web page editing terminal 3B using protocols such as TCP/IP.

クライアント3Aは、ウェブページをウェブサーバ2からダウンロードして表示することによってユーザへ提示する。クライアント3Aとして、パーソナルコンピュータ、タブレットコンピュータ、またはスマートフォンなど、ウェブブラウザを有する装置が用いられる。以下、クライアント3Aとしてノート型のパーソナルコンピュータが用いられる場合を例に説明する。 The client 3A downloads the web page from the web server 2 and presents it to the user by displaying it. As the client 3A, a device having a web browser, such as a personal computer, a tablet computer, or a smartphone, is used. An example in which a notebook personal computer is used as the client 3A will be described below.

クライアント3Aは、図3に示すように、メインプロセッサ31、RAM32、ROM33、補助記憶装置34、ディスプレイ35、ネットワークコントローラ36、キーボード37、ポインティングデバイス38、および音声ユニット39などによって構成される。 As shown in FIG. 3, the client 3A includes a main processor 31, a RAM 32, a ROM 33, an auxiliary storage device 34, a display 35, a network controller 36, a keyboard 37, a pointing device 38, an audio unit 39, and the like.

ROM33または補助記憶装置34には、オペレーティングシステムおよびウェブブラウザ30(図4参照)などがインストールされている。なお、オペレーティングシステムおよびウェブブラウザ30の少なくとも一方に、スクリーンリーダが備わっている。 An operating system, a web browser 30 (see FIG. 4), and the like are installed in the ROM 33 or the auxiliary storage device 34. Note that at least one of the operating system and the web browser 30 is equipped with a screen reader.

RAM32は、クライアント3Aのメインメモリである。RAM32には、適宜、ROM33または補助記憶装置34からプログラムがロードされる。メインプロセッサ31は、RAM32にロードされたプログラムを実行する。 The RAM 32 is the main memory of the client 3A. A program is loaded into the RAM 32 from the ROM 33 or the auxiliary storage device 34 as appropriate. Main processor 31 executes a program loaded into RAM 32.

ディスプレイ35は、ウェブブラウザ30の画面などを表示する。ネットワークコントローラ36は、TCP/IPなどのプロトコルでウェブサーバ2などの装置と通信する。キーボード37およびポインティングデバイス38は、コマンドまたは情報をユーザが入力するために用いられる。 The display 35 displays the screen of the web browser 30 and the like. The network controller 36 communicates with devices such as the web server 2 using protocols such as TCP/IP. Keyboard 37 and pointing device 38 are used for user input of commands or information.

音声ユニット39は、音声ボード、スピーカ、およびマイクなどによって構成される。マイクがオペレータの音声を集音し、音声ボードがその音声を音声データに変換する。または、スクリーンリーダによって生成された音声データに基づいて音声ボードが人工の音声を生成し、スピーカがその音声を出力する。 The audio unit 39 includes an audio board, a speaker, a microphone, and the like. A microphone collects the operator's voice, and an audio board converts the voice into audio data. Alternatively, an audio board generates artificial audio based on audio data generated by a screen reader, and a speaker outputs the audio.

ウェブページ編集端末3Bは、オペレータがウェブページを作成しまたは編集するための装置である。作成されまたは編集されたウェブページのファイルは、ウェブページ編集端末3Bからウェブサーバ2へアップロードされる。ウェブページ編集端末3Bとして、パーソナルコンピュータ、タブレットコンピュータ、またはスマートフォンなどが用いられる。ウェブページ編集端末3Bとしてノート型のパーソナルコンピュータが用いられる場合は、クライアント3Aと同様、図3に示したようにハードウェアが構成される。 The web page editing terminal 3B is a device for an operator to create or edit a web page. The created or edited web page file is uploaded to the web server 2 from the web page editing terminal 3B. A personal computer, a tablet computer, a smartphone, or the like is used as the web page editing terminal 3B. When a notebook personal computer is used as the web page editing terminal 3B, the hardware is configured as shown in FIG. 3, similar to the client 3A.

ところで、ウェブページ提供システム1によると、ウェブページの中の漢字にその読み仮名をルビとして振ることができる。従来の技術によると、上述の通り、ルビ付きのウェブページは、スクリーンリーダによるコンテンツの読上げおよび検索エンジンによる検索が的確に行わないことがある。しかし、ウェブページ提供システム1によると、スクリーンリーダおよび検索エンジンを従来よりも的確に動作させることができる。以下、その仕組みについて説明する。 By the way, according to the web page providing system 1, it is possible to assign the pronunciation of a kanji character in a web page as a ruby. According to the conventional technology, as described above, a web page with ruby text may not be read out aloud by a screen reader or searched by a search engine accurately. However, according to the web page providing system 1, the screen reader and search engine can operate more accurately than before. The mechanism will be explained below.

図4は、ウェブサーバ2の機能的構成の例を示す図である。図5は、ウェブページ50の例を示す図である。 FIG. 4 is a diagram showing an example of the functional configuration of the web server 2. As shown in FIG. FIG. 5 is a diagram showing an example of a web page 50. As shown in FIG.

ウェブページ管理プログラム20によると、図4に示すテキストノード検出部201、単語検出部202、読み仮名決定部203、ルビマップ生成部204、HTMLファイル生成部205、ウェブページファイル記憶部206、ウェブページ送信部207、および変換スクリプト送信部208などの機能がウェブサーバ2に実現される。以下、図5のような、気象情報を知らせるウェブページ50をユーザへ提供する場合を例に、ウェブサーバ2の各部、クライアント3A、およびウェブページ編集端末3Bそれぞれの処理を、準備のための処理およびウェブページへのアクセス時の処理に大別して説明する。 According to the web page management program 20, the text node detection unit 201, word detection unit 202, reading kana determination unit 203, ruby map generation unit 204, HTML file generation unit 205, web page file storage unit 206, and web page transmission shown in FIG. Functions such as the conversion script transmission section 207 and the conversion script transmission section 208 are implemented in the web server 2. Hereinafter, taking as an example a case where a web page 50 informing users of weather information as shown in FIG. and processing when accessing a web page.

〔2.各部の処理〕
〔2.1 準備のための処理〕
図6は、HTMLファイル60の例を示す図である。図7は、ルビマップ633の例を示す図である。図8は、ウェブページ51の例を示す図である。図9は、HTMLファイル61の例を示す図である。図10は、定義コード621の例を示す図である。
[2. Processing of each part]
[2.1 Processing for preparation]
FIG. 6 is a diagram showing an example of the HTML file 60. FIG. 7 is a diagram showing an example of the ruby map 633. FIG. 8 is a diagram showing an example of the web page 51. FIG. 9 is a diagram showing an example of the HTML file 61. FIG. 10 is a diagram showing an example of the definition code 621.

ウェブページ50(図5参照)のHTMLファイル60は、図6に示すように、HTML(Hypertext Markup Language)によって記述されており、ヘッダ部601およびボディ部602などを有する。ヘッダ部601には、文字コードの指定およびタイトルなどのコードが示される。ボディ部602には、ウェブページ50のテキストコンテンツ501を表示するためのコードなどが示される。 The HTML file 60 of the web page 50 (see FIG. 5) is written in HTML (Hypertext Markup Language), as shown in FIG. 6, and includes a header section 601, a body section 602, and the like. The header section 601 shows character code designations and codes such as titles. The body portion 602 shows a code for displaying the text content 501 of the web page 50, and the like.

オペレータは、例えば次のようにHTMLファイル60をウェブページ編集端末3Bに用意する。ウェブページ編集端末3Bにインストールされている市販のウェブページ作成ツールによってHTMLファイル60を作成する。または、ウェブサーバ2または他のウェブサイトにある既存のウェブページのHTMLファイルをHTMLファイル60として取得してもよい。そして、HTMLファイル60をウェブサーバ2へ入力する。 The operator prepares the HTML file 60 on the web page editing terminal 3B, for example, as follows. An HTML file 60 is created using a commercially available web page creation tool installed on the web page editing terminal 3B. Alternatively, an HTML file of an existing web page on the web server 2 or another website may be obtained as the HTML file 60. Then, the HTML file 60 is input to the web server 2.

すると、ウェブサーバ2において、テキストノード検出部201は、HTMLファイル60からテキストノードを検出する。テキストノードは、一般に、ボディの中のタグおよび所定のタグに挟まれたコードを除いたものである。したがって、ボディ部602から下記の(1)~(5)の5つのテキストノードがテキストノード検出部201によって検出される。 Then, in the web server 2, the text node detection unit 201 detects a text node from the HTML file 60. A text node generally excludes tags in the body and code sandwiched between predetermined tags. Therefore, the following five text nodes (1) to (5) are detected by the text node detection unit 201 from the body portion 602.

(1) 「最強寒波」
(2) これから朝にかけて雪の予想は?
(3) この冬一番の非常に強い寒気の影響で西日本や東日本の日本海側を中心に急激に積雪が増え、特に岡山県北部には
(4) 「顕著な大雪に関する気象情報」
(5) が相次いで発表され、深刻な交通障害に厳重に警戒するよう呼びかけられています。
(1) “The strongest cold wave”
(2) What is the forecast for snow from now until morning?
(3) Due to the effects of this winter's extremely strong cold front, snowfall has increased rapidly mainly in the Sea of Japan side of western and eastern Japan, especially in the northern part of Okayama Prefecture (4) "Weather information regarding significant heavy snowfall"
(5) have been announced one after another, calling for strict vigilance against serious traffic disruptions.

単語検出部202は、テキストノード検出部201によって検出された各テキストノードに対して公知の形態素解析を実行することによって各テキストノードに含まれる単語を検出する。 The word detection unit 202 detects words included in each text node by performing a known morphological analysis on each text node detected by the text node detection unit 201.

読み仮名決定部203は、単語検出部202によって検出された単語のうち漢字を含む単語の読み仮名を公知の方法(例えば、漢字辞書データベースによる検索)によって決定する。 The pronunciation determining unit 203 determines the pronunciation of the word containing a kanji among the words detected by the word detecting unit 202 using a known method (for example, search using a kanji dictionary database).

ルビマップ生成部204は、図7に示すようなルビマップ633を生成する。ルビマップ633は、JSON(JavaScript Object Notation)形式で記述され、テキストノードごとの対応関係コードを有する。 The ruby map generation unit 204 generates a ruby map 633 as shown in FIG. The ruby map 633 is written in JSON (JavaScript Object Notation) format, and has a correspondence code for each text node.

対応関係コードは、下記のように記述される。
"1st-element":"2nd-element"
「1st-element」および「2nd-element」は、それぞれ、第一の要素および第二の要素である。第一の要素として、テキストノードが元のまま示される。一方、第二の要素として、テキストノードが次のように編集されたものが示される。
The correspondence code is written as follows.
"1st-element":"2nd-element"
"1st-element" and "2nd-element" are the first element and the second element, respectively. As the first element, the text node is shown as is. On the other hand, the second element shows a text node edited as follows.

テキストノードの中の1つのまたは連続する複数の漢字の直後に、読み仮名決定部203によって決定された読み仮名を「rt」タグで括った文字列を配置する。そして、その漢字およびその文字列をで括る。したがって、例えば、(2)のテキストノードの対応関係コードの第二の要素として、次のコードが示される。
これから<ruby>朝<rt>あさ</rt></ruby>にかけて<ruby>雪<rt>ゆき</rt></ruby>の<ruby>予想<rt>よそう</rt></ruby>は?
なお、連続する複数の漢字を分割して上記の通り編集してもよい。例えば、「交通障害」を「交通」と「障害」とに分割し、次のように記述してもよい。
<ruby>交通<rt>こうつう</rt></ruby><ruby>障害<rt>しょうがい</rt></ruby>
これらの対応関係コードは、互いにカンマで区切られて並べられ、window.textnode_ruby_map = {} で括られる。
Immediately after one or a plurality of consecutive kanji in a text node, a character string in which the pronunciation determined by the pronunciation determination unit 203 is wrapped in "rt" tags is placed. Then, bracket the kanji and the character string. Therefore, for example, the following code is shown as the second element of the text node correspondence code in (2).
From now on <ruby>morning <rt>morning</rt></ruby><ruby>snow<rt>snow</rt></ruby>'s<ruby>forecast<rt>looksgood</rt></ruby>?
Note that a plurality of consecutive kanji may be divided and edited as described above. For example, "traffic obstruction" may be divided into "traffic" and "obstruction" and written as follows.
<ruby>Transportation<rt>Comments</rt></ruby><ruby>Disability<rt>Injuries</rt></ruby>
These correspondence codes are separated by commas and wrapped in window.textnode_ruby_map = {}.

HTMLファイル生成部205は、ウェブページ51を表示するためのHTMLファイル61を生成する。ウェブページ51は、図8に示すように、テキストコンテンツ511およびルビ付与ボタン512によって構成される。ウェブページ50(図5参照)と比較して分かるように、テキストコンテンツ511はテキストコンテンツ501と同様である。したがって、ウェブページ51は、ルビ付与ボタン512をウェブページ50に設けたものであると言える。 The HTML file generation unit 205 generates an HTML file 61 for displaying the web page 51. As shown in FIG. 8, the web page 51 is composed of text content 511 and a ruby adding button 512. As can be seen by comparing with web page 50 (see FIG. 5), text content 511 is similar to text content 501. Therefore, it can be said that the web page 51 is the web page 50 provided with the ruby adding button 512.

HTMLファイル61は、図9のように、ヘッダ部611およびボディ部612などによって構成される。 As shown in FIG. 9, the HTML file 61 is composed of a header section 611, a body section 612, and the like.

ヘッダ部611には、HTMLファイル60(図6参照)のヘッダ部601と同様に、文字コードの指定およびタイトルなどが示される。ヘッダ部611には、さらに、定義コード621が示される。 Similar to the header section 601 of the HTML file 60 (see FIG. 6), the header section 611 shows character code designation, title, and the like. The header section 611 further shows a definition code 621.

定義コード621は、表示のスタイルを定義するものであって、本実施形態では特に、図10のように、2つの要素の表示形式がインライン(横並び)または非表示に設定されるように定義される。定義コード621は、CSS(Cascading Style Sheets)によって記述される。 The definition code 621 defines the display style, and in this embodiment, it is particularly defined so that the display format of the two elements is set to inline (side-by-side) or hidden, as shown in FIG. Ru. The definition code 621 is written using CSS (Cascading Style Sheets).

ボディ部612は、コンテンツ部612A、外部スクリプト呼出部612B、ルビマップ部612C、およびボタン制御部612Dなどによって構成される。 The body section 612 includes a content section 612A, an external script calling section 612B, a ruby map section 612C, a button control section 612D, and the like.

コンテンツ部612Aには、コンテンツコード631が示される。コンテンツコード631には、HTMLファイル60のボディ部602のコードと同様に、ウェブページ50のテキストコンテンツ501を表示するためのコードが含まれる。さらに、ルビ付与ボタン512を表示するためのコードが含まれる。 A content code 631 is shown in the content section 612A. The content code 631 includes a code for displaying the text content 501 of the web page 50, similar to the code of the body part 602 of the HTML file 60. Furthermore, a code for displaying a ruby addition button 512 is included.

外部スクリプト呼出部612Bには、JavaScript(登録商標)で記述された変換スクリプト67を呼び出すためのコードが示される。例えば、変換スクリプト67のファイル名が「tsutaeru_rp.js」であれば、下記のコードが示される。
<script src="tsutaeru_rp.js"></script>
ルビマップ部612Cには、ルビマップ生成部204によって生成されたルビマップ633(図7参照)が示される。ボタン制御部612Dには、テキストコンテンツおよびボタンの表示などを後述のように制御するための制御コード634が示される。
The external script calling section 612B shows a code for calling the conversion script 67 written in JavaScript (registered trademark). For example, if the file name of the conversion script 67 is "tsutaeru_rp.js", the following code is shown.
<script src="tsutaeru_rp.js"></script>
The ruby map section 612C shows the ruby map 633 (see FIG. 7) generated by the ruby map generation section 204. The button control unit 612D shows a control code 634 for controlling text content, button display, etc. as described later.

HTMLファイル61は、HTMLファイル生成部205によって生成されると、ファイル名と対応付けられてウェブページファイル記憶部206に記憶される。なお、HTMLファイル生成部205には、変換スクリプト67が予め記憶されている。 When the HTML file 61 is generated by the HTML file generation unit 205, it is stored in the web page file storage unit 206 in association with a file name. Note that the HTML file generation unit 205 stores a conversion script 67 in advance.

HTMLファイル61のほか、ウェブページファイル記憶部206に記憶されるHTMLファイルは、インターネット上で公開される。 In addition to the HTML file 61, the HTML files stored in the web page file storage section 206 are published on the Internet.

HTMLファイル61および変換スクリプト67によると、次に説明するように、クライアント3Aにおいてルビが振られたり除去されたりしながらウェブページ51が表示される。 According to the HTML file 61 and the conversion script 67, the web page 51 is displayed on the client 3A while the ruby is added or removed, as will be described below.

〔2.2 ウェブページへのアクセス時の処理〕
図11は、ウェブページ51の表示の処理の流れの例を説明するフローチャートである。図12は、テキストペアコード635の例を示す図である。図13は、コンテンツコード631の生成方法の例を示す図である。図14は、ウェブページ51にルビが振られた状態の例を示す図である。
[2.2 Processing when accessing a web page]
FIG. 11 is a flowchart illustrating an example of the flow of processing for displaying the web page 51. FIG. 12 is a diagram showing an example of the text pair code 635. FIG. 13 is a diagram illustrating an example of a method for generating the content code 631. FIG. 14 is a diagram showing an example of a state in which ruby is added to the web page 51.

クライアント3Aにおいて、ウェブブラウザ30(図4参照)は、ウェブページ51(図8参照)のURL(Uniform Resource Locator)がユーザによって指定されると、ウェブページ51をウェブサーバ2へ要求する。 In the client 3A, the web browser 30 (see FIG. 4) requests the web page 51 from the web server 2 when the URL (Uniform Resource Locator) of the web page 51 (see FIG. 8) is specified by the user.

すると、ウェブサーバ2において、ウェブページ送信部207は、ウェブページ51のHTMLファイル61(図9参照)をクライアント3Aへ送信する。 Then, in the web server 2, the web page sending unit 207 sends the HTML file 61 of the web page 51 (see FIG. 9) to the client 3A.

ウェブブラウザ30は、ウェブサーバ2からHTMLファイル61が送信されてくると、HTMLファイル61のコピーを所定の一時記憶領域にバックアップファイルとして保存される。なお、バックアップファイルは、更新されない。そして、HTMLファイル61に基づいて、図11に示す手順で処理を実行する。 When the web browser 30 receives the HTML file 61 from the web server 2, the web browser 30 saves a copy of the HTML file 61 in a predetermined temporary storage area as a backup file. Note that the backup file is not updated. Then, based on the HTML file 61, processing is executed according to the procedure shown in FIG.

ウェブブラウザ30は、HTMLファイル61のヘッダ部611およびコンテンツ部612Aそれぞれに記述されるコードに従ってウェブページ51をレンダリングし、ディスプレイ35に表示させる(図11の#701)。 The web browser 30 renders the web page 51 according to the codes written in the header part 611 and the content part 612A of the HTML file 61, and displays it on the display 35 (#701 in FIG. 11).

さらに、ウェブブラウザ30は、外部スクリプト呼出部612Bに記述されるコードに従って外部スクリプトとして変換スクリプト67を読み込む(#702)。変換スクリプト67に定義されている関数等は、制御コード634において使用される。なお、変換スクリプト67は、変換スクリプト送信部208によってクライアント3Aへ送信され、クライアント3Aにキャッシュされる。 Further, the web browser 30 reads the conversion script 67 as an external script according to the code written in the external script calling section 612B (#702). Functions and the like defined in the conversion script 67 are used in the control code 634. Note that the conversion script 67 is sent to the client 3A by the conversion script sending unit 208 and cached in the client 3A.

HTMLファイル61に基づく処理が初めてである場合は(#703でYes)、ウェブブラウザ30は、コンテンツ部612Aの変換処理を次のように行う(#704)。 When processing based on the HTML file 61 is performed for the first time (Yes in #703), the web browser 30 performs the conversion processing of the content section 612A as follows (#704).

ウェブブラウザ30は、コンテンツ部612Aのテキストコンテンツからテキストノードを検出する。HTMLファイル61のテキストコンテンツは上述の通りHTMLファイル60のテキストコンテンツ(図6参照)と同じなので、上記の(1)~(5)のテキストノードが検出される。 The web browser 30 detects a text node from the text content of the content section 612A. Since the text content of the HTML file 61 is the same as the text content of the HTML file 60 (see FIG. 6) as described above, the text nodes (1) to (5) above are detected.

ウェブブラウザ30は、検出したテキストノードそれぞれのテキストペアコード635を生成する(#722)。テキストペアコード635は、下記のように記述される。
<span class="tsutaeruRuby">
<span class="tsutaeruRuby__phrase" aria-hidden="value1">1st-element</span>
<span class="tsutaeruRuby__translation" aria-hidden="value2">2nd-element</span>
</span>
「value1」および「value2」は、「true」または「false」の二値であって、value1≠value2 である。
The web browser 30 generates a text pair code 635 for each detected text node (#722). The text pair code 635 is written as follows.
<span class="tsutaeruRuby">
<span class="tsutaeruRuby__phrase"aria-hidden="value1">1st-element</span>
<spanclass="tsutaeruRuby__translation"aria-hidden="value2">2nd-element</span>
</span>
"value1" and "value2" are binary values of "true" or "false", and value1≠value2.

「1st-element」および「2nd-element」は、それぞれ、ルビマップ部612Cに示されるルビマップ633(図7参照)の第一の要素および第二の要素である。したがって、上記(1)~(5)それぞれのテキストノードのテキストペアコード635として、図12に示すようなコードが生成される。以下、(1)、(2)、…、(5)それぞれのテキストノードのテキストペアコード635を「テキストペアコード6351」、「テキストペアコード6352」、…、「テキストペアコード6355」と記載する。 "1st-element" and "2nd-element" are the first element and second element, respectively, of the ruby map 633 (see FIG. 7) shown in the ruby map section 612C. Therefore, codes as shown in FIG. 12 are generated as the text pair codes 635 for each of the text nodes (1) to (5) above. Hereinafter, the text pair code 635 of each text node (1), (2), ..., (5) will be written as "text pair code 6351", "text pair code 6352", ..., "text pair code 6355". .

そして、ウェブブラウザ30は、コンテンツコード631の中の(1)~(5)それぞれのテキストノードを、図13に示すように、それぞれに対応するテキストペアコード635に置き換える。 The web browser 30 then replaces each of the text nodes (1) to (5) in the content code 631 with the corresponding text pair code 635, as shown in FIG.

変換処理が完了したら、ウェブブラウザ30は、ルビとして振り仮名を付与するための設定を行う(#705)。具体的には、「value1」が「true」になり「value2」が「false」になるように各テキストノードのテキストペアコード635を更新する。さらに、コンテンツ部612Aに示される、ルビ付与ボタン512を表示するためのコードを、ルビ消去ボタン514を表示するためのコードに置き換える。 When the conversion process is completed, the web browser 30 performs settings for adding furigana as ruby (#705). Specifically, the text pair code 635 of each text node is updated so that "value1" becomes "true" and "value2" becomes "false." Further, the code for displaying the ruby addition button 512 shown in the content section 612A is replaced with the code for displaying the ruby deletion button 514.

そして、ウェブブラウザ30は、設定が完了したコンテンツ部612Aのコードなどに従ってウェブページ51をレンダリングし直して表示させる(#701)。すると、テキストコンテンツ511に「display:none」のスタイルが適用されて非表示になり、図14に示すような、各漢字にルビが振られたテキストコンテンツ513が、「display:inline」のスタイルが適用されて表示される。これにより、テキストコンテンツ511がテキストコンテンツ513に置き換わったように見える。 The web browser 30 then renders and displays the web page 51 again according to the code of the content section 612A for which the settings have been completed (#701). Then, the "display:none" style is applied to the text content 511 and it is hidden, and the text content 513 with ruby assigned to each kanji as shown in Figure 14 is changed to the "display:inline" style. applied and displayed. As a result, it appears that the text content 511 has been replaced with the text content 513.

ルビ消去ボタン514がクリックされると(#703でNo、#706でYes)、ウェブブラウザ30は、ルビを消去するための設定を制御コード634に基づいて行う(#707)。具体的には、「value1」が「false」になり「value2」が「true」になるように各テキストノードのテキストペアコード635を更新する。さらに、コンテンツ部612Aに示される、ルビ消去ボタン514を表示するためのコードを、ルビ付与ボタン512を表示するためのコードに置き換える。 When the ruby erase button 514 is clicked (No in #703, Yes in #706), the web browser 30 makes settings for erasing ruby based on the control code 634 (#707). Specifically, the text pair code 635 of each text node is updated so that "value1" becomes "false" and "value2" becomes "true." Furthermore, the code for displaying the ruby delete button 514 shown in the content section 612A is replaced with the code for displaying the ruby add button 512.

そして、ウェブブラウザ30は、設定が完了したコンテンツ部612Aのコードなどに従ってウェブページ51をレンダリングし直して表示させる(#701)。すると、ウェブページ51が、図14に示した状態から、図8に示した状態に更新される。これは、テキストコンテンツ511に「display:inline」のスタイルが適用されテキストコンテンツ513に「display:none」のスタイルが適用されることによる。 The web browser 30 then renders and displays the web page 51 again according to the code of the content section 612A for which the settings have been completed (#701). Then, the web page 51 is updated from the state shown in FIG. 14 to the state shown in FIG. 8. This is because the "display:inline" style is applied to the text content 511 and the "display:none" style is applied to the text content 513.

ルビ付与ボタン512がクリックされると(#703でNo、#706でYes)、ウェブブラウザ30は、ルビを付与するための設定を制御コード634に基づいて行う(#707)。具体的には、「value1」が「true」になり「value2」が「false」になるように各テキストノードのテキストペアコード635を更新する。さらに、コンテンツ部612Aに示される、ルビ付与ボタン512を表示するためのコードを、ルビ消去ボタン514を表示するためのコードに置き換える。これも上述の通り、表示のスタイルの変更に依る。 When the ruby adding button 512 is clicked (No in #703, Yes in #706), the web browser 30 makes settings for adding ruby based on the control code 634 (#707). Specifically, the text pair code 635 of each text node is updated so that "value1" becomes "true" and "value2" becomes "false." Further, the code for displaying the ruby addition button 512 shown in the content section 612A is replaced with the code for displaying the ruby deletion button 514. As mentioned above, this also depends on changing the display style.

そして、ウェブブラウザ30は、設定が完了したコンテンツ部612Aのコードに従ってウェブページ51をレンダリングし直して表示させる(#701)。すると、ウェブページ51が、図8に示した状態から、図14に示した状態に更新される。 Then, the web browser 30 re-renders and displays the web page 51 according to the code of the content section 612A for which the settings have been completed (#701). Then, the web page 51 is updated from the state shown in FIG. 8 to the state shown in FIG. 14.

ステップ#701~#707の処理は、ウェブページ51が表示されている間、ルビ付与ボタン512またはルビ消去ボタン514がクリックされるごとに実行される。 The processes in steps #701 to #707 are executed each time the ruby add button 512 or the ruby delete button 514 is clicked while the web page 51 is displayed.

なお、ウェブページ51にルビが振られた状態であるか否かは、ウェブブラウザ30のCookieによって監視すればよい。 Note that whether or not the web page 51 is marked with ruby can be monitored using a cookie of the web browser 30.

〔2.3 ウェブページの読上げ〕
ウェブページ51が表示されている際にユーザが読上コマンドを入力すると、クライアント3Aのスクリーンリーダによってウェブページ51のコンテンツが読み上げられる。すなわち、ウェブページ51のコンテンツが人工の音声によって出力される。
[2.3 Web page reading]
When the user inputs a reading command while the web page 51 is displayed, the content of the web page 51 is read out by the screen reader of the client 3A. That is, the content of the web page 51 is output as an artificial voice.

ところで、従来、スクリーンリーダによると、レンダリングされたウェブページ(つまり、表示されているウェブページ)のテキストが読み上げられるケース(以下、「ケース_1」と記載する。)もあれば、ダウンロードされたHTMLファイルに示されるソースが、タグ等をスキップして読み上げられるケース(以下、「ケース_2」と記載する。)もある。どちらのケースが取られるかは、オペレーティングシステムまたはウェブブラウザに備わるスクリーンリーダの仕様による。 By the way, conventionally, according to screen readers, in some cases (hereinafter referred to as "Case_1") the text of a rendered web page (that is, the displayed web page) is read aloud, and in some cases, the text of the rendered web page (that is, the displayed web page) is read aloud. There is also a case (hereinafter referred to as "Case_2") where the source indicated in the file is read aloud with tags etc. skipped. Which case is taken depends on the operating system or the specifications of the screen reader included in the web browser.

しかし、どちらのケースにおいても、従来、漢字にルビが付与されたウェブページを読み上げさせると、漢字および読み仮名の両方が読み上げられてしまう。 However, in either case, when a web page in which ruby has been added to kanji is read aloud, both the kanji and the reading kana are read aloud.

一方、ウェブサーバ2によって提供されるウェブページすなわちウェブページ51は、どちらのケースにおいても、漢字および読み仮名のうちの漢字のみを読み上げさせることができる。その仕組みは、次の通りである。 On the other hand, the web page provided by the web server 2, that is, the web page 51, can read out only kanji among kanji and reading kana in either case. The mechanism is as follows.

ケース_1の場合は、図8に示したようにルビが振られていない状態で読上コマンドが入力されると、クライアント3Aは、ウェブページ51に配置されているテキストをスクリーンリーダによって読み上げる。したがって、当然、ルビは、読み上げられない。 In case_1, when a reading command is input without ruby as shown in FIG. 8, the client 3A uses the screen reader to read out the text arranged on the web page 51. Therefore, naturally, the ruby cannot be read aloud.

ケース_2の場合は、読上コマンドが、ルビが振られていない状態で入力されても振られている状態(図14参照)で入力されても、クライアント3Aは、ダウンロードされたHTMLファイル61(バックアップファイル)に基づいてテキストを読み上げる。これは、ウェブブラウザ30の仕様による。バックアップファイルのコンテンツ部612Aは、ルビを付与する処理が施される前の状態である。また、ルビマップ部612Cは、JSON形式で記述されているので読上げの対象でない。したがって、ルビは、読み上げられない。 In case_2, whether the read-aloud command is input with ruby not set or with ruby set (see Figure 14), the client 3A will not be able to read the downloaded HTML file 61 ( Read text based on backup file). This depends on the specifications of the web browser 30. The content section 612A of the backup file is in a state before the process of adding ruby is performed. Furthermore, the ruby map portion 612C is not a target of reading because it is written in JSON format. Therefore, ruby cannot be read aloud.

〔3. 全体的な処理の流れおよび本実施形態の効果〕
図15は、ウェブサーバ2の全体的な処理の流れの例を説明するフローチャートである。
[3. Overall processing flow and effects of this embodiment]
FIG. 15 is a flowchart illustrating an example of the overall processing flow of the web server 2.

次に、ウェブページ提供システム1の全体的な処理の流れを、フローチャートを参照しながら説明する。 Next, the overall processing flow of the web page providing system 1 will be explained with reference to a flowchart.

ウェブサーバ2は、図15に示す手順でウェブページ管理プログラム20に基づいて処理を実行する。 The web server 2 executes processing based on the web page management program 20 according to the procedure shown in FIG.

ウェブサーバ2は、配信対象のウェブページのファイルとしてウェブページ50のHTMLファイル60をウェブページ編集端末3Bから受信すると(図15の#721でYes)、ウェブページ50をルビ付きで提供するための登録処理を次のように実行する。 When the web server 2 receives the HTML file 60 of the web page 50 as the file of the web page to be distributed from the web page editing terminal 3B (Yes in #721 in FIG. Execute the registration process as follows.

ウェブサーバ2は、ウェブページ50からテキストノードを検出し(#722)、各テキストノードから単語を検出し(#723)、検出した単語のうち漢字を含む単語の読み仮名を決定する(#724)。そして、決定した読み仮名に基づいて、ルビマップ633(図7参照)を生成する(#725)。 The web server 2 detects text nodes from the web page 50 (#722), detects words from each text node (#723), and determines the reading kana of words that include kanji among the detected words (#724). ). Then, based on the determined pronunciation, a ruby map 633 (see FIG. 7) is generated (#725).

ウェブサーバ2は、ルビマップ633のほか、スタイル用のコード、ルビ付与ボタン512の表示用のコード、および変換スクリプト67の呼出用のコードなどをHTMLファイル60へ挿入することによって、HTMLファイル61を生成する(#726)。そして、HTMLファイル61をウェブページファイル記憶部206に記憶させる(#727)。これにより、ウェブページ50に振り仮名のルビを付与したもの、すなわち、ウェブページ51の準備が完了する。 The web server 2 generates an HTML file 61 by inserting into the HTML file 60, in addition to the ruby map 633, a style code, a code for displaying the ruby adding button 512, a code for calling the conversion script 67, etc. (#726). Then, the HTML file 61 is stored in the web page file storage unit 206 (#727). This completes the preparation of the web page 50 with furigana ruby added, that is, the web page 51.

または、クライアント3Aからウェブページ51を要求されると(#728でYes)、HTMLファイル61をクライアント3Aへ送信する(#729)。その後、変換スクリプト67がクライアント3Aから要求されるので、変換スクリプト67をクライアント3Aへ送信する。 Alternatively, when the web page 51 is requested from the client 3A (Yes in #728), the HTML file 61 is sent to the client 3A (#729). Thereafter, since the conversion script 67 is requested from the client 3A, the conversion script 67 is sent to the client 3A.

そして、クライアント3Aにおいて、図11に示した手順でウェブページ51の表示の処理が実行される。 Then, in the client 3A, the process of displaying the web page 51 is executed according to the procedure shown in FIG.

なお、本例では、ウェブページ50を取り扱う場合を例に説明したが、他のウェブページを取り扱う場合も同様に、ウェブサーバ2は、ステップ#722~#727の処理およびステップ#729の処理を適宜、実行する。また、クライアント3Aは、図11に示した手順で表示の処理を実行する。 Although this example has been explained using the case where the web page 50 is handled, the web server 2 similarly performs the processing of steps #722 to #727 and the processing of step #729 when handling other web pages. Execute as appropriate. Further, the client 3A executes display processing according to the procedure shown in FIG.

本実施形態によると、ウェブページ51のように漢字に振り仮名がルビとして振られたウェブページの、スクリーンリーダなどによる読上げを、従来よりも確実に行うことができる。その仕組みは、上述の通りである。 According to the present embodiment, a screen reader or the like can read out aloud a web page such as the web page 51 in which kanji and furigana are added as ruby characters more reliably than in the past. The mechanism is as described above.

さらに、このようなウェブページの、検索エンジンによる検索を、従来よりも確実に行うことができる。その仕組みは、次の通りである。 Furthermore, such web pages can be searched more reliably by a search engine than before. The mechanism is as follows.

例えば、ウェブページ51のHTMLファイル61は、変換処理(図13参照)が施されていない状態すなわち「ruby」タグおよび「rt」タグが使用されていない状態でウェブサーバ2から提供される。したがって、検索エンジンは、「「最強さいきょう寒波かんぱ」これから朝あさにかけて雪ゆきの予報よほうは?…」のような、ルビがノイズとして含まれるテキストではなく、「「最強寒波」これから朝にかけて雪の予報は?…」のような、ノイズの含まれないテキストを対象に検索を行うことができる。よって、従来よりも確実な検索がなされる。 For example, the HTML file 61 of the web page 51 is provided from the web server 2 without being subjected to conversion processing (see FIG. 13), that is, without using the "ruby" tag and the "rt" tag. Therefore, the search engine will ask you, ``What's the forecast for snow from now until dawn?'' Instead of text that includes ruby as noise, such as "...", "What's the forecast for snow from now on in the morning, "The coldest wave"? You can search for text that does not contain noise, such as "...". Therefore, a more reliable search can be performed than in the past.

また、本実施形態によると、ルビ付きおよびルビ無しの両方でウェブページをユーザへ提供する際のウェブサーバの負荷を従来よりも軽減することができる。 Furthermore, according to the present embodiment, the load on the web server when providing web pages with and without ruby to users can be reduced compared to the conventional method.

すなわち、ユーザからリクエストがあるごとにウェブサーバが動的にウェブページにルビを振って提供すると、ウェブサーバに負担が掛かる。しかし、本実施形態では、ウェブサーバ2は、ルビを振るためのデータ(ルビマップ633、変換スクリプト67など)を用意しており、ユーザからリクエストがあっても上記の動的な処理を行わない。したがって、ウェブサーバ2の負担が従来よりも軽減される。 That is, if a web server dynamically assigns and provides ruby to a web page every time a user requests it, a burden is placed on the web server. However, in this embodiment, the web server 2 prepares data for distributing ruby (ruby map 633, conversion script 67, etc.), and does not perform the above-mentioned dynamic processing even if there is a request from the user. Therefore, the burden on the web server 2 is reduced compared to before.

しかも、上記の動的な処理を伴わないので、ウェブページ提供システム1をCDN(Content Delivery Network)として構築することができる。すなわち、ウェブサーバ2をオリジンサーバとして使用し、地理的に分散された1つまたは複数のキャッシュサーバにウェブページの配信を行わせることができる。これにより、ウェブページの配信のスピードアップを図ることができる。 Moreover, since the above dynamic processing is not involved, the web page providing system 1 can be constructed as a CDN (Content Delivery Network). That is, the web server 2 can be used as an origin server, and one or more geographically distributed cache servers can distribute web pages. This makes it possible to speed up the delivery of web pages.

〔4.適用例および変形例〕
ウェブページ提供システム1は、日常の情報を日本語ネイティブだけでなくノンネイティブ向けにも配信するために好適に用いられる。また、上述の通り、ウェブサーバ2の負荷を従来よりも軽減することができるので、緊急の情報を配信するために特に好適に用いられる。
[4. Application examples and modifications]
The web page providing system 1 is suitably used to distribute daily information not only to native Japanese speakers but also to non-native speakers. Furthermore, as described above, the load on the web server 2 can be reduced compared to the conventional method, so it is particularly suitable for distributing urgent information.

本実施形態では、ルビマップ633(図7参照)はJSON形式で記述されたが、JavaScriptでの読込み可能なオリジナルデータと変換後のデータの対比の配列であれば、他の形式で記述されてもよい。例えば、XML(Extensible Markup Language)で記述されてもよい。 In this embodiment, the ruby map 633 (see FIG. 7) is written in JSON format, but it may be written in other formats as long as it is an array of the comparison between original data and converted data that can be read in JavaScript. good. For example, it may be written in XML (Extensible Markup Language).

本実施形態では、図4に示したテキストノード検出部201ないし変換スクリプト送信部208の機能をすべてウェブサーバ2に実装したが、複数のコンピュータに分散してもよい。例えば、HTMLファイル60からHTMLファイル61を生成する機能をウェブページ編集端末3Bに実装し、HTMLファイル61および変換スクリプト67を配信する機能をウェブサーバ2に実装してもよい。または、HTMLファイル61を配信する機能をウェブサーバ2に実装し、変換スクリプト67を配信する機能を他のウェブサーバに実装してもよい。 In this embodiment, the functions of the text node detection unit 201 to conversion script transmission unit 208 shown in FIG. 4 are all implemented in the web server 2, but they may be distributed among multiple computers. For example, the function of generating the HTML file 61 from the HTML file 60 may be implemented in the web page editing terminal 3B, and the function of distributing the HTML file 61 and the conversion script 67 may be implemented in the web server 2. Alternatively, the function of distributing the HTML file 61 may be implemented in the web server 2, and the function of distributing the conversion script 67 may be implemented in another web server.

または、ウェブページ提供システム1に1つまたは複数のキャッシュサーバを設け、ウェブサーバ2をオリジンサーバとして機能させ、HTMLファイル61および変換スクリプト67を配信する機能をキャッシュサーバに実装してもよい。この場合は、クライアント3Aは、最寄りのキャッシュサーバへアクセスし、HTMLファイル61などを取得すればよい。 Alternatively, one or more cache servers may be provided in the web page providing system 1, the web server 2 may function as an origin server, and a function for distributing the HTML file 61 and the conversion script 67 may be implemented in the cache server. In this case, the client 3A may access the nearest cache server and obtain the HTML file 61 and the like.

本実施形態では、漢字に対してその読み仮名をルビとして振る場合を例に説明したが、漢字以外の記号に対してルビを振る場合にも、ウェブページ提供システム1を適用することができる。例えば、「patent」という英単語に対して「特許」または「パテント」というルビを振るように、アルファベットで記述される英単語に対してその意味または読み仮名をルビとして振る場合に適用することができる。 In this embodiment, an example has been described in which the pronunciation of a kanji is assigned as a ruby, but the web page providing system 1 can also be applied to a case where a ruby is assigned to a symbol other than a kanji. For example, it can be applied to assigning the meaning or pronunciation of an English word written in the alphabet as a ruby, such as assigning the ruby "patent" or "patent" to the English word "patent". can.

または、ウェブサーバ2は、漢字等にルビが振られる代わりに「最強(さいきょう)」、「patent(パテント)」、または「patent(特許)」のように漢字等の直後に括弧書きで読み仮名または意味が付加されるようにルビマップ633を生成してもよい。つまり、例えば上記(1)のテキストペアコード635として下記のようなコードを有するようにルビマップ633を生成してもよい。
"「最強寒波」":"「最強(さいきょう)寒波(かんぱ)」"
本実施形態では、ウェブサーバ2は、HTMLファイル60に示されるテキストノードごとにテキストペアコード635を生成したが、「非常に」、「朝にかけて」、または「遣り甲斐」など漢字を含む単語または短文ごとにテキストペアコード635を生成してもよい。
Alternatively, the web server 2 may read characters such as "strongest", "patent", or "patent" in parentheses immediately after the kanji, etc., instead of adding ruby to the kanji, etc. The ruby map 633 may be generated so that a kana or meaning is added. That is, for example, the ruby map 633 may be generated to have the following code as the text pair code 635 in (1) above.
"The Strongest Cold Wave":"The Strongest Cold Wave"
In the present embodiment, the web server 2 generates a text pair code 635 for each text node shown in the HTML file 60, but the text pair code 635 is generated for each text node shown in the HTML file 60. A text pair code 635 may be generated for each short sentence.

その他、ウェブページ提供システム1、ウェブサーバ2、クライアント3A、ウェブページ編集端末3Bの全体または各部の構成、処理の内容、処理の順序、HTMLファイル61の構成、ウェブページの構成などは、本発明の趣旨に沿って適宜変更することができる。 In addition, the present invention covers the entire structure or each part of the web page providing system 1, web server 2, client 3A, and web page editing terminal 3B, the content of processing, the order of processing, the structure of the HTML file 61, the structure of the web page, etc. It can be changed as appropriate according to the purpose.

1 ウェブページ提供システム(テキストコンテンツ提供システム)
2 ウェブサーバ(サーバ)
30 ウェブブラウザ(生成手段、表示制御手段)
3A クライアント
207 ウェブページ送信部(送信手段、テキストコンテンツ送信手段)
208 変換スクリプト送信部(プログラム送信手段)
511 テキストコンテンツ
61 HTMLファイル(ウェブファイル)
612Aコンテンツ部(表示制御手段)
612B 外部スクリプト呼出部(呼出部)
612C ルビマップ部(対応関係部)
612D ボタン制御部(生成手段、更新部)
633 ルビマップ(対応関係情報)
635 テキストペアコード(付加表示コード)
67 変換スクリプト(生成手段、生成用スクリプト)
1 Web page provision system (text content provision system)
2 Web server (server)
30 Web browser (generation means, display control means)
3A Client 207 Web page transmission unit (transmission means, text content transmission means)
208 Conversion script transmission unit (program transmission means)
511 Text content 61 HTML file (web file)
612A content section (display control means)
612B External script calling section (calling section)
612C Ruby map section (corresponding section)
612D Button control unit (generation means, update unit)
633 Ruby map (correspondence information)
635 Text pair code (additional display code)
67 Conversion script (generation means, generation script)

Claims (10)

伝達する内容を表わすテキストであるテキストコンテンツを提供するテキストコンテンツ提供システムであって、
サーバと、クライアントと、を有し、
前記サーバは、
前記テキストコンテンツと、当該テキストコンテンツの中の漢字と当該漢字の読み仮名とを対応付ける対応関係情報とを、前記クライアントへ送信する送信手段、
を有し、
前記クライアントは、
前記漢字の近傍に前記読み仮名を配置して前記テキストコンテンツを表示するための付加表示コードを前記テキストコンテンツおよび前記対応関係情報に基づいて生成する生成手段と、
選択的に前記付加表示コードに基づいて前記漢字の近傍に前記読み仮名を配置した状態でまたは配置しない状態で前記テキストコンテンツをディスプレイに表示させる表示制御手段と、
を有する、
ことを特徴とするテキストコンテンツ提供システム。
A text content providing system that provides text content that is text representing content to be transmitted, the system comprising:
It has a server and a client,
The server is
Transmitting means for transmitting the text content and correspondence information that associates the kanji in the text content with the pronunciation of the kanji to the client;
has
The client is
generating means for generating an additional display code for displaying the text content by arranging the reading kana near the kanji based on the text content and the correspondence information;
Display control means for selectively displaying the text content on a display with or without the reading kana arranged near the kanji based on the additional display code;
has,
A text content providing system characterized by:
伝達する内容を表わすテキストであるテキストコンテンツを提供するテキストコンテンツ提供システムであって、
前記テキストコンテンツと、当該テキストコンテンツの中の漢字と当該漢字の読み仮名とを対応付ける対応関係情報とを、クライアントへ送信するテキストコンテンツ送信手段と、
前記漢字の近傍に前記読み仮名を配置して前記テキストコンテンツを表示するための付加表示コードを前記テキストコンテンツおよび前記対応関係情報に基づいて生成する生成用プログラムを前記クライアントへ送信するプログラム送信手段と、
を有することを特徴とするテキストコンテンツ提供システム。
A text content providing system that provides text content that is text representing content to be transmitted, the system comprising:
text content transmitting means for transmitting the text content and correspondence information that associates the kanji in the text content with the pronunciation of the kanji to the client;
a program transmitting means for transmitting to the client a generation program for generating an additional display code for displaying the text content by arranging the reading kana near the kanji , based on the text content and the correspondence relationship information; ,
A text content providing system comprising:
前記テキストコンテンツ送信手段は、前記テキストコンテンツおよび前記対応関係情報として、当該テキストコンテンツと当該対応関係情報と前記生成用プログラムを外部スクリプトとして指定するコードとが記述されたHTMLファイルを送信する、
請求項2に記載のテキストコンテンツ提供システム。
The text content transmitting means transmits, as the text content and the correspondence information, an HTML file in which the text content, the correspondence information, and a code specifying the generation program as an external script are written.
The text content providing system according to claim 2.
前記生成用プログラムは、前記漢字のルビとして前記読み仮名を配置するコードを前記付加表示コードとして生成するスクリプトである、
請求項3に記載のテキストコンテンツ提供システム。
The generation program is a script that generates a code for arranging the reading kana as the ruby of the kanji as the additional display code.
The text content providing system according to claim 3.
伝達する内容を表わすテキストであるテキストコンテンツを提供するテキストコンテンツ提供方法であって、
前記テキストコンテンツと、当該テキストコンテンツの中の漢字と当該漢字の読み仮名とを対応付ける対応関係情報とを、クライアントへ送信する処理をサーバに実行させ、
前記漢字の近傍に前記読み仮名を配置して前記テキストコンテンツを表示するための付加表示コードを前記テキストコンテンツおよび前記対応関係情報に基づいて生成する処理をクライアントに実行させ、
選択的に前記付加表示コードに基づいて前記漢字の近傍に前記読み仮名を配置した状態でまたは配置しない状態で前記テキストコンテンツをディスプレイに表示させる処理を前記クライアントに実行させる、
ことを特徴とするテキストコンテンツ提供方法。
A text content providing method for providing text content that is text representing content to be communicated, the method comprising:
causing the server to execute a process of transmitting the text content and correspondence information that associates the kanji in the text content with the pronunciation of the kanji to the client;
causing a client to execute a process of generating an additional display code for displaying the text content by arranging the reading kana near the kanji , based on the text content and the correspondence information;
selectively causing the client to display the text content on a display with or without the pronunciation arranged near the kanji based on the additional display code;
A text content providing method characterized by:
伝達する内容を表わすテキストであるテキストコンテンツを提供するコンピュータに用いられるコンピュータプログラムであって、
前記コンピュータに、
前記テキストコンテンツと、当該テキストコンテンツの中の漢字と当該漢字の読み仮名とを対応付ける対応関係情報とを、クライアントへ送信する処理を実行させ、
前記漢字の近傍に前記読み仮名を配置して前記テキストコンテンツを表示するための付加表示コードを前記テキストコンテンツおよび前記対応関係情報に基づいて生成する生成用プログラムを前記クライアントへ送信する処理を実行させる、
ことを特徴とするコンピュータプログラム。
A computer program for use in a computer that provides text content, which is text representing content to be communicated, comprising:
to the computer;
Execute a process of transmitting the text content and correspondence information that associates the kanji in the text content with the pronunciation of the kanji to the client;
Executing a process of transmitting to the client a generation program that generates an additional display code for displaying the text content by arranging the reading kana near the kanji based on the text content and the correspondence relationship information. ,
A computer program characterized by:
伝達する内容を表わすテキストであるテキストコンテンツを補足情報とともに表示させるためのウェブファイルであって、
前記テキストコンテンツを表示するためのコンテンツ部と、
前記テキストコンテンツの中の漢字と当該漢字の読み仮名とを対応付ける対応関係情報を示す対応関係部と、
前記漢字の近傍に前記読み仮名を前記補足情報として配置して前記テキストコンテンツを表示するための付加表示コードを前記テキストコンテンツおよび前記対応関係情報に基づいて生成する生成用スクリプトを外部スクリプトとして指定する指定コードを示す呼出部と、
前記生成用スクリプトによって前記付加表示コードを生成する生成処理と、当該生成された付加表示コードを前記テキストコンテンツとともに示しかつ前記漢字の近傍に選択的に前記読み仮名を配置した状態でまたは配置しない状態で当該テキストコンテンツをディスプレイに表示させるように前記コンテンツ部を更新する更新処理とをコンピュータに実行させる更新用スクリプトを示す更新部と、
を有することを特徴とするウェブファイル。
A web file for displaying text content, which is text representing the content to be transmitted, together with supplementary information,
a content section for displaying the text content;
a correspondence relationship section indicating correspondence information that associates the kanji in the text content with the pronunciation of the kanji ;
A generation script that generates an additional display code for displaying the text content by arranging the reading kana as the supplementary information near the kanji , based on the text content and the correspondence information, is specified as an external script. a calling section indicating a specified code;
A generation process of generating the additional display code by the generation script, and a state in which the generated additional display code is shown together with the text content and the pronunciation kana is selectively arranged near the kanji , or is not arranged. an update unit that indicates an update script that causes a computer to execute an update process that updates the content unit so that the text content is displayed on a display;
A web file characterized by having.
前記生成処理は、前記漢字に前記読み仮名をルビとして配置して前記テキストコンテンツを表示するためのコードを前記付加表示コードとして生成する処理である、
請求項に記載のウェブファイル。
The generation process is a process of generating a code for displaying the text content by arranging the reading kana as a ruby on the kanji as the additional display code,
The web file according to claim 7 .
前記更新処理は、所定の操作が行われるごとに前記付加表示コードおよび前記テキストコンテンツのいずれか一方にのみ非表示のスタイルが交互に適用されるように前記コンテンツ部を更新する処理を含む、
請求項または請求項に記載のウェブファイル。
The update process includes a process of updating the content section so that a hidden style is alternately applied only to either the additional display code or the text content each time a predetermined operation is performed.
The web file according to claim 7 or claim 8 .
前記更新処理は、前記読み仮名を配置するか否かを切り換えるためのボタンとともに前記テキストコンテンツを表示させるように前記コンテンツ部を更新する処理を含む、
請求項または請求項に記載のウェブファイル。
The updating process includes a process of updating the content section so as to display the text content together with a button for switching whether to arrange the pronunciation kana .
The web file according to claim 7 or claim 8 .
JP2023037609A 2023-03-10 2023-03-10 Text content providing system, text content providing method, computer program, and web file Active JP7351468B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2023037609A JP7351468B1 (en) 2023-03-10 2023-03-10 Text content providing system, text content providing method, computer program, and web file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2023037609A JP7351468B1 (en) 2023-03-10 2023-03-10 Text content providing system, text content providing method, computer program, and web file

Publications (2)

Publication Number Publication Date
JP7351468B1 true JP7351468B1 (en) 2023-09-27
JP2024128578A JP2024128578A (en) 2024-09-24

Family

ID=88099274

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2023037609A Active JP7351468B1 (en) 2023-03-10 2023-03-10 Text content providing system, text content providing method, computer program, and web file

Country Status (1)

Country Link
JP (1) JP7351468B1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005128918A (en) * 2003-10-27 2005-05-19 Toppan Printing Co Ltd Ruby swing server and method
JP2010128539A (en) * 2008-11-25 2010-06-10 Kyocera Corp Mobile communication terminal and related information display program
WO2020036011A1 (en) * 2018-08-16 2020-02-20 ソニー株式会社 Information processing device, information processing method, and program
JP2020064428A (en) * 2018-10-17 2020-04-23 義明 覚田 Content display method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005128918A (en) * 2003-10-27 2005-05-19 Toppan Printing Co Ltd Ruby swing server and method
JP2010128539A (en) * 2008-11-25 2010-06-10 Kyocera Corp Mobile communication terminal and related information display program
WO2020036011A1 (en) * 2018-08-16 2020-02-20 ソニー株式会社 Information processing device, information processing method, and program
JP2020064428A (en) * 2018-10-17 2020-04-23 義明 覚田 Content display method and device

Also Published As

Publication number Publication date
JP2024128578A (en) 2024-09-24

Similar Documents

Publication Publication Date Title
US7805290B2 (en) Method, apparatus, and program for transliteration of documents in various indian languages
US7496497B2 (en) Method and system for selecting web site home page by extracting site language cookie stored in an access device to identify directional information item
US6829746B1 (en) Electronic document delivery system employing distributed document object model (DOM) based transcoding
US6725424B1 (en) Electronic document delivery system employing distributed document object model (DOM) based transcoding and providing assistive technology support
US7054952B1 (en) Electronic document delivery system employing distributed document object model (DOM) based transcoding and providing interactive javascript support
US20080313532A1 (en) Method and apparatus for repurposing formatted content
US8612206B2 (en) Transliterating semitic languages including diacritics
EP1641211A2 (en) Web server and method for dynamic content.
US20060031760A1 (en) Adaptive document layout server/client system and process
US20130238310A1 (en) Content page url translation
US20100017464A1 (en) Web page content translator
US9245032B2 (en) Globalization framework for providing locale-specific services using client-side scripting languages
JP2004310748A (en) Presentation of data based on user input
KR100456022B1 (en) An XML-based method of supplying Web-pages and its system for non-PC information terminals
US6906810B2 (en) Method and system for allowing an on-line user to selectively customize a document for printing in a single batch process
US20120120436A1 (en) Remote printing
GB2330429A (en) Data stream enhancement
KR102769202B1 (en) Method, electronic device, and storage medium for processing visual data of deep model
JP7351468B1 (en) Text content providing system, text content providing method, computer program, and web file
KR101975111B1 (en) Mass webpage document transforming method, and system thereof
EP1384165A2 (en) Customization of output content based on device type
JP5682113B2 (en) Information display device and program
KR20230057898A (en) Method for editing and converting electronic document on cloud-based electronic document platform
WO2001095151A1 (en) Data transfer device
WO2002037310A2 (en) System and method for transcoding information for an audio or limited display user interface

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230310

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20230310

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230425

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230613

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: 20230822

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230905

R150 Certificate of patent or registration of utility model

Ref document number: 7351468

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150