======================================== Please donot walk the center of the big avenue & Please do bend your xeroxed papers on this center line. This readme file as a update0.02 CopyRight miyama. 2011 kaz_kimijima@yahoo.co.jp www.geocities.jp/kaz_kimijima ======================================== 日本語のREADMEは英文のあとにあります 1 introduction The just before version:0.01 is a utility only as to put any long text sentences on the center zone as avenue of html viewer or brawsers The 0.01, it is also clear being to view to center zone, although it is, the reason of saying 'donot walk center, 7 dwarfs from woods' is a small reason, because they only were walkeres not big cars. Small numbers characters of the long line, it is need that they are moved to left side of HTML avenue. For this delail,Please read the old readme 'ReadmeCH.txt'. It was also the 0.01 is a tiny program only for just one traffic opration, But now then new 0.02 added function, it is one for paper printing demand. In a past days not far ago, my friend's friend said, 'something good for easy printing software for simple document use?' She said it is not hard printing , only xerox machine matter for only a few team or hobby making simple manual or novels. then, she said again, normal word proccesour soft is so heavy and complex, and sometimes only to print a few pages colorful flyers. and it is bad point charactors bigth tuning is every each charactors,and those chainging demmand is unable actually to need to each operation to each cahracters or sentences! She say cannot control many document on those big elephants on her busy dayes. I felt sure to her sulfer. Sometimes we donot recognise that the computer culture had a origin from hippy (not elephas on this case) culture. In this past time , I was about 5 years old child, but I saw thier movement sometimes childish or egoistic. Then, I suppose those people sometimes thought they are not like to do duty or bitter work. Also the silicon bisinesses, they sometimes easily move more maney profitable company than thier criosity demand to knowledge or experiment. Probablly it is a origin today's automatically robot-maney trading system. then, I understand a reason that good word processour or editor for good thinking is nothere it is before sentences-matters. Excel is needed as value to trading and cutting costs and cutting employees as the red check for direct managers darly task, on the anothour hand, noone think and do thinking work on the it, thus the Word is the past days' dinosours bones. Then, she said again, it is ok it is a simple tool. I understood her wishes,I tell but I am also always busy, please permit the result will be made on the long future. Then,she permitted. But I am also an amatuour, and this trying only as bolantiee, I cought not make to realize many challenging. But one boned basical function was realized for first her demmand,then I upload it to internet as a free software. Though it is free to use or spread, I take one point to the user of this tool,please good job on your bisiness or hobby. it is only a little sincere to change our world to more good slowly. 2 Functions of this tool the 0.02 added function is only for a binding book. for example, using mono side xerox- coped paper,through bending on the center line to half, and those bundle to one easy books with steapler pushing. This style is able to carry out by any copy-machine. This tool's is a style HTML functional document file ,is same 0.01 too. The printing function taked a way as a hard copy from internet explore view image. Because of, it might work on the another brawser platform. on click, the 0.02 functional HTML document, then it shows the next operational window. --------------------------------__[]X ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 1 2 ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 3 4 continue... -------------------------------------- this view window was printed from upper side to under, step by step using left and right wide sided rectangle paper as hard copy. Because it is hard copy without using direct printer machine command, it is needed to tune the paper and view windows unitical height. This method is written on the after charper. (Test printing function is there.) The numbers of the upper example figure, it is a page number footers. The pagefooter is always viewed and printed. 2-1 supply source data text file. It is same way to the past version 0.01, using push down file reference button function. This entry function permits to use only the extension as TXT style. And the 'walker move to left side function' requests the condition the tuned control line zone are enough wide than the text line max width. If the tuned line width is short to the text line,the view result will be comfused. 2-2 forcly new page starting For new chaper is always started on the new page top,for example, the new page command is there. The idea is simple,when the system discovers the comand on reading file line, it paints vacant line to the page and move next page output. The line including this command, itself is written old page's last line. the page command is next, &page the pagecommand-self is removed from mother line. and if many page comands are on one line,the system recognizes only one demmand and ignores remain else. 2-3 img files The part was the most difficult logic. The new folder CentIMGw is made on the desktop starting this tool, it is for html image files. Please copy image into this folder. The way to make to be recognized to system is symple too, writting to the image filename to source text side demanded to display position. format example fig1/imagefile.jpg/fig1comment/100/ If system-recognizing is success,this format sentence is removed to output view. :top fig1 describing is remained. Please using sentence's direct conference. This including comment images' will be displayed left or right side.it is need thnt the comment strings is suitable as small. if it is not, then it might make confuse out view, but to avoid it, using space delimiter on the comment string,the ie makes separate to another new line. The 100 of the example, it is width rate as mean 100 percent.on 100 percent mode, graphics's width is same characters sentences line. This rate permission is from 10 to 500, but many-over rate is controlled until the limit of the page size by system function to avoid style- breaks out view. The image width is controled by sentence lines length. * image display way outline on the 0.01, it is only for HTML view, then it didnot pey any attention to image display position on the PC monitor But in the case on the paper printing, if donot pey it sometimes image print on edge between of two paper. I tried to avoid to this problems. I taked the way to distinguish the images position and sentences one on the paper. Because I choiced a way image width and sentences lines one same width basically, then, I was noticed naturally a rule of the one image to one pages. This system is only permitted by the function-rule. if system discovers a image filename on source text line,it remembered it to memory at once, and continues to read source text and out to characters view. But once it is noticed to come out-view page end edge,it pokes the memory's image file image to the next new page, This making of this logic was so heavy, I sometimes imaged that I try to scraiper to the huge marble statue. *attention* /Please not use especial long height image or using huge wide rate,then next pagecomposition will be confused. /filename write-way This program requires the demand as to write image filename to source text file. but, for example the photo image made by degital camera,then it gives a long filenameas about unix file. 2011_09_21_000000.jpeg It is not practical to write this name to source text each by manual trying. I supposed sure, then I made a tiny tool onto this system... This system makes always a tiny batch file into image file folder CentIMGw as a name IMGLIST.BAT it is able to get all names of the files on this folder. On clicking it, then spread file list on the memopad,please copy&peast to user source text file. /supported image file extention jpeg,jpg,gif,png,bmp,tiff but sometimes BMP files sometimes are not able to be viewed through LAN cable. I suppose that it is a matter HTTP port permission.But I donot know those datail as knowledge that it might be differ as a fact or not. 3 Right to use or spread It is free to use or spread for anyone. 4 Enough machine envilonment Win32 machine over Windows95 and InternetExplore over5.0 version. Other brawser might be not suitable. and HighResolusion mode 1024*768 needed. Ie's version over 5.0 is for regular expression for image filename picking up on the tools. I suppose the native ie5.0 envilonment sometimes is not on the win98 old machines, but I images many users already got over 2000 today. If ie new version up on the antique machine,sometimes DLL version confliction arise.Plaese take your own risk. and off cource Printer needed. The reason of 1024 hireso envilonment, it is next: This program is only a function of the ie's hard copy function. But ie takes a way to use pixel style for the image file. Because the same bigth image file are there,of the any differnt ie display mode small normal one or extra max mode. This nature occured a bad result for my tools. Display result was confusioned. I tuned this tools back width number parametors under the envilonment 1024*768 ie max mode(not extrawhole maxmode). Because of it,please use this display mode on the printing demand. 5 Practical use method Please melt archive CentH002.ZIP, and please copy the CentH002.HTM to desktop. This tool act on the desktop. Please Click it,then CentIMGw is made for imagefiles. Copying using image files to it, and clicking inner batch file IMGlist.bat, then displayed image file list on the memopad. The filename on this memopad is able to use to copy to original text source file. It is needed that /filename/comment/rate/ style. It donot recognize it on including some misswritting. Operaional window is next: Please read old readme readmech.txt togather. ー--------------------------------__[]X old 0.01 window zone for File reading and execute button English Mode Japanese mode chainging button window:Basical chractors number on each line First Parameter is 40 characters ------ーー------------------------------ <0.02 new fanctions zone> [two block mode button] off mode is old 0.01 output condition on mode is left and right 2 block display mode for print operation. [window:lines number per oneblock] [window:width between both blocks] vacant space width between both block, unit is 1byte space. [2/4 page printing mode button] [window:A3 center margin lines num] conference item 6-3 [image block height tuning bySystem/user Custum button] [window:pixel number by CustumOperation] conference item 7-1 [make testfile and execute] for print tuning of ie view and text print menue. conference item 6 ---------------------------------------- old 0.01 characters bigth and color tuning ---------------------------------------- 6 Paper tunig In first,2block mode button click. The next descriptions example on the character pitch no.3 on HTML as H3 tug. In the special user demand case of other pitch size,other numbers for tuning will be needed. This tool for bend off paper on the center as a rectangle, printer tuning is paper left right wided side not up side. Thus, it is needed that printer tuning is made clear firstly before real printing, because of that it is needed explore's view and real paper's edges are fit each page edeges. and sample view for tunig is prepered in the tool. and please use printing pre-view function of the explore before real printing. ---------------------------------------- In first parameters loaded: H3 pitch mode 40 chrs on each line 40 lines per one block then, 1600 characters on each block. Because the print-operation is a method of the hard copy from ie's HTML window, the printing menu of ie is pointed as demannd with ie printing conditional tuning. Please tune the menu of the explore displayed the common result file : outputCH.HTM from the tool pushed out the button of the function of tstprint. I thought the next is as a tips, The view ie window of outputCH.HTM is holded always and result view checked, by times tuning again and again or real source textsentences printing. And it a better to stop to print when odd result real printing arise. 6-1 Font for printer. it is able to change the printer font. This example ie ver8, from toolbar of explore, tool>>>internet option >design >font chainging is able on this menu. web page font | text style font|< this reflect to printer. 6-2 printer tuning for page edge. For page edge correct deviding,it is needed printer tuning correctly because this tool cannot send direct command to hardware printer. ---------------------------------------- A4 paper,left and right wide side, 40 line perpage example ---------------------------------------- 6-2-1 page parameter tuning from toolbar of internet explore file > page tuning ----- A4 left and right wide direction. left margin 0 rightmargin 0 up margin 24 mili metor down mergin 24 mili metor ---- if you are belong in inch rule mesure culture, please transrate it yours rule. The checkbox is false:the item all print with shrink the 6 header & footer items are all vacant. the Page footer of my tools is for active. please not push the font select button. The tuning under this button do not be reflected internet explore printing at all. ---------- 6-2-2 WidePrinting Fuction of printer off from the tool bar of the i. explore, file>>>print preiew the magnicifier menu is 100 percent. Please check the normal result until final page image on this printing preview on your real text resource use. ---------------------------------------- I had my test clear out on this methods, on my envilonment. Please try-print first your page before whole page print action. 6-3 about 4 pages printing. It is near function real print work. Cheesing this function is to push 4/2 page select button. Without this function, 2pages is on the A4 paper,but with it then 4pages on A3 paper. But it is not heavy function on the program code, it is only a function to add some vacant lines A3 paper's center. It is for a running cost for many re-printing. By the printing machine nature, the cost is more low on the wide size printing at once. 6-3-1 A3 up and down wide paper rectangle style. on the outputch.htm for my tool, A3 vacant lines tuning is 6,push testprint and click outputCH.htm on the desktop, next is printer tuning on the internet explore menu, file > page tuning ---------- A3 up and down wide sided rectangle choice, then after it is same the A4 case. left margin 0 right 0 up 24 mili down 24 mili ie toolbar >file >preview 100percent choice. ------------ If preview imege confusion, please tune the vacant lines parameter on my tools. it is enough probablly the up and down margin tuning on the printer is not operated. ---------- on a demmand to print to other size paper, or on the other charactoer size or lines num, please tune on the detail on user tuning. Conference. about propotional font My tool is near only text editors world without stylish printing colorful job. If one knows for example sql data work, he know also the charactors length as the bytecode. Fix pitch printout is physical length is same to bytecodes' one, but propotional one is not deffer, on the especially example between the cahractoers i and w. 7 Practical operation flow CentH002.htm click on the desktop copying user image files to centIMGw folder click imglist.bat open your document source text copying imglist's filename to your document img filename format: remain comment as confer/filename.extension/innercomment/rate/ if inner comment long, please put space as delimiter. rate is 100 basically. your document close back to tool operational window, characters and lines numbers tuning. Printer margin tuning-- push test print button click outputCH.htm on the desktop tuning printer paramaer: tool bar > file >page tunig check test file result preview: tool bar > file >preview trying test image print, check print out success. outputCH.htm not close yet. on Real Execute--- User document text reading. and push goAction outputCH.htm renewal,: toolbar>view>reflesh checking result success until lastpage on this preview. Real Printing start. please interrupt it forcly if odd confusion appears. -- By the way, on wishing to carry out this result as outputCH.htm, please rename it other new name and with image files folder to CDR or memory sticks. 7-1 About character bigth on HTML This tool's bigth and color of view caracter is able to be changed by tuning same as to old 0.01. But if absolute bigth is changed of chrs, it is need that print rayout is cahnaged also. For a fixed size of the paper, if the bigth is wided, then it is need that the lines is narrow number per 1 block as page,by user manual operation. I taked a tuning for H3 pitch tug condition. And this system had rough tuning function for image view bigth for character and rayout bigth, but it is not universal. if rayout became to confusion, please system mode to user custum. then, pushing button system/user custam, putting into number window new pixels num as image page height and re go_action. Hiderberg Miyama. ================================== ======================================== まんなか歩かないでください & まんなかで折ってください Ver0.02 アップデートとしてのreadme CopyRight miyama. 2011 kaz_kimijima@yahoo.co.jp www.geocities.jp/kaz_kimijima ======================================== 1 はじめに 前回のプログラム0.01は、長文をWE B画面に読みやすいように画面の中央に表示 するためのユーティリティでした まんなかに表示するプログラムなのに、 「まんなかを歩かないでください森の小人さ ん」とはこれいかに、と想う方もいるとおも いますが、それは一行の指定枠の文字数にお さまらない、印刷で言う「氷柱行==つらら行」 が単純HTML文法ではこれも画面の中央に表示 されてしまうからでした 前回はこの結果としての無作法を修正する だけのユーティリティでした、詳しくは旧re admeをご覧ください もちろん、たいしたプログラムではありま せんでした 今回は、印刷出力を意識したバージョンア ップとなっています 前回は、WEB画面表示だけのユーティリ ティでしたので、特にこまかい機能を意識す ることもありませんでした イントラネット連絡用の機能であれば、こ れで充分でしょうし、画像などを埋め込むの であればユーザ氏は別途既成のHTMLエディタ を使用されることを想定していたからです 今回、個人的サイド(知り合いの知り合い) で、長文を紙にプリントアウトする都合(版 下ではなく小部数のゲラ刷り冊子)があり、 既成のワープロソフトでは使いにくいので なにかアイディアはないかとたずねられまし た いわく、市販のワープロソフトでは、書式 設定を各項目段落ごとに設定しなくてはなら ず 忙しい日常のなかでは、プリントアウトの レベルではとても文書を管理できないという のです さもありなむ とおもいました IT業界と言うものは、もともとカリフォル ニアのヒッピー文化の流れを汲んでいるので、 甘い誘惑にとても弱いのです 平和運動にしたって、軍需産業によって潤 った世の中の景気を下げてまで、平和を叫び つづけることの覚悟やそこまでの洞察は無か ったようです で、投資が短期的に利益になるクライアン トサーバー型通販(証券含む)に集中してし まうと、給金のよいそちら側にみんなSEが 流れてしまったことはあったようです 個人的にはプログラマに人物はいない、と おもっていますがそれは一般論語弊があるで しょうか それはさておき、必要とされる場面に彼ら の技術が投入されることはいままでにあまり ありませんでしたし、また業界全体の体質か らしてこれからもこのままではないでしょう 新しいものは、素人が必死に努力して作る しかないのは、歴史の必然ですね 溜息が出ます これでは人間が弱い生き物でありつづける かぎり革命や戦争は常についてまわる、とい うことだからです 就労期間中に会社や国家が寿命を迎えると いうことは、それは他との戦争に敗北したと 言うことでしょうね ともかく、ワープロソフトの構造は各文字 ひとつひとつの背後に情報の束(大きさとか 書体とか色)の構造体を割り付け、それを複 雑な画像ソフトで展開して表示しています その意味では、あくまでワープロソフトは 基本的にCADベクトル画像ソフトであって、 テキストエディタではありません SEDやAWKのようなあくまでもバイト コードシークエンスに慣れ親しんだ人にとっ てはあくまでも画像ソフトはことなる世界で す 投資は企業が受けるので、当然ある程度の 開発は企業の方針とスポンサーの意向に左右 されざるを得ません その意味では、フライヤーとしての企業フ リーソフトを含め、使いやすいそういう種類 のソフトはまあ、でないとおもっていいでし ょう で 簡単なものでいいんだから とその知人氏はいうので、こっちも忙しい 身なのでいつになってもいいかいと許可をも らい、いくつかのアイディアをコードにして みました 個人があくまでツールのレベルでしか努力 を投入できませんが、またそうたいした機能 の実装もできませんが とりあえず基本機能は動くようになったよ うですので一般の人々の多少の利便に提供す べく、フリーとして公開したいとおもいます 完全なるフリーウェアではありません ほかの私のソフトにも共通していますが私 のソフトを使う人は、できるはんいでよい仕 事をしてください 2 機能と実装 前書きでたいそう矯激なことを書いた割り には、私の実力はたいしたものではありませ ん 使用するプラットフォームも既存のありふ れたものです 高校などの印刷室などでガリ版やリソグラ フ(TM)でプリントをすってクラスに配布し た委員の仕事などを思い出してください あの頃きみは、若かった、じゃなくて(笑)、 失礼しました そうじゃなくてその簡易冊子の工程です ふつう、奇数頁と偶数頁をB4などの紙に いっしょに刷り、まんなかで折り、必要量を 束ねて、ホチキス(いまはステープラー)で 閉じたあれです コンビニコピーなどでやる場合は、コピー 誌と呼ばれます 知人の簡易冊子の様式要請がこのコピー誌 のかたちでしたので、ツールもその仕様でま ず組んでみました ツール本体は、インターネットエクスプロ ーラーのスクリプトHTMLファイルであるのは 前回のバージョン0.01とおなじです 印刷出力はエクスプローラのハードコピー の形を取っています ですから、FIREFOXなどほかのブラウザで は、表示結果が乱れるかもしれません 動作結果の画面はこのようになります 例 エクスプローラの画面 --------------------------------__[]X ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 1 2 ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 3 4 以下続く... -------------------------------------- A4なりB4なりの紙を画面の上から横印刷設 定にして、順次ハードコピーとして出力して いきます 当然ハードコピーですので紙の縦幅と画面 の縦幅が設定で一致している必要があります がその調整の方法は章の末で述べてあります (試し刷り設定のメニューあり) 上記例の数字添え字はページ番号フッタで す ページフッタはかならず表示される仕様に なっています(そこまでのこまかい選択機能 はつけませんでした) 2--1 データテキスト供給 前回0.01同様、画面からファイル参照 ボタンを通じて選択します  ※インターネットエクスプローラの仕様: おそらくリモートハッキング防止のため:の ため参照ボタンはマウスしか使用できません テキスト拡張子TXTのファイルしか選択で きません また、このユーティリティは、一行あたり の元テキスト文字数が設定規定値よりも小さ い場合はその表示位置を自動調整しますが、 多い場合は適正に管理しません 元テキストの行文字数が横におおきい場合 は、このユーティリティの設定値を大きくす るかあるいは拙作の自動幅調整ツール「羊羹 の型」などで調整してください 2--2 改ページ 文書が数章に渡る場合などで、章が変わる たびに新章を紙の冒頭からはじめたい場合な どのために、改ページの機能を用意しました 概念は単純で、もとのテキスト上改ページ したいところに改ページの印文字列を挿入し てください &page もしくは &頁 または &ページ &ぺーじ で認識します アンド記号、アルファベットは、全角でも 半角でもかまいません 印文字列は認識後の出力では削除されます また、一行中に複数の印文字列を書いた場 合、一回のみの改ページとして動作します 2--3 画像 このプログラム制作上もっとも難産した点 です このツールを起動すると、デスクトップ上 にフォルダ CentIMGw という画像格納用フ ォルダが作られます 出力に表示させたい画像はこのなかにいれ てください 供給元テキスト側で、画像を表示させたい 大体の位置に画像ファイルの名前を書いてい ただきます 書式例 fig1/imagefile.jpg/fig1説明/100/ 斜め記号と数字はかならず半角で入力して ください またピリオドと拡張子も半角で必要です システムが認識をすればこの部分の記述は 出力から文字列としては削除されます:冒頭 のfig1は残ります なお、画像ファイル用フォルダCentIMGw内 に該当の画像ファイルがない場合はシステム は認識をしません 説明は、ページのむきにしたがって画像の 左右もしくは上下に表示されます 説明コメントはあまり長い文言だと配置が 乱れることがあります もし、長い文章を挿入したいときは、単語 の区切りに半角スペースを使用してください エクスプローラが自動で文言を上下に折り たたみます 例で100とされているのは100パーセン トの意味で設定一行の幅と大体一致する画像 の比率が100です 10から500までが指定可能ですがあまりお おきいとシステムによりページ枠の上限に制 限されます 画像の幅は常に文字行の等倍:初期時には 同一幅ですので、書式変更により行幅を大き くするとそれに比例して大きくなります 画面一杯に文字を書く場合、一倍以上の倍 率では画像はページをはみ出してしまいます ので、このあたりは100前後が適当だと想い ます WEB表示スクロールでは画像はそんなに 表示書式を意識しなくて表示させてもかまわ ないと一般に想いますが 紙出力をさせる場合は紙の切れ目で画像が きれては困りますのでその辺を配慮しました すなわち 文章を一行づつシステムが読み込んでいく 途中で、画像ファイル表示の指示を原稿から 受けると、システムはその文書中に画像を配 置せず 次のページから画像出力を表示しようとし ます(システム上一ページに一画像しか表示 できません) 原稿一ページ上に複数の画像表示の指示の 記載がある場合、システムは複数の画像ファ イル名をメモリーに保持し、次のページから 一気に一ページ一画像の扱いで表示します このあたりの文字列をも含めて左右の切り 替え論理がもっとも製作に時間がかかりまし た コードを見てもらえばわかりますがものす ごいヤスリがけの論理です 当時は彫刻をしている気分でした 画像は極端に縦長の画像を大きな拡大率で 指定しないでください次のページ画面が乱れ る原因にもなります また画像名はデジカメなどで撮ったファイ ルの場合 2011_09_21_000000.jpeg 等のようにながいファイル名がつくことが あります ファイル名を手打ちで入力することが面倒 な場合のために、ツールは画像用フォルダ内 に画像ファイル名を取得する簡単なバッチフ ァイル :歯車のマークのファイルを用意しています クリックするとファイル名を取得したテキ ストがひらきますこのファイル名を元文書の テキストの所定の位置にコピーしてください また、画像ファイルは jpeg,jpg,gif,png,bmp,tiff が指定可能ですが、ビットマップbmp拡張 子形式は、LANを通じて閲覧するとほかの マシンからはは見えないことがあります これはhttpのポート許認可の話だと想うの ですが詳しいことは作者は寡聞にしてしりま せん、ごめんなさい なお0.01相当機能のなか縦一本表示の 動作機能でも画像はひろい上げるように変更 しましたが このような画像の頁割の配慮機能はありま せん また改ページコードも無視されます 3 使用許認可条件 前書きにも書きましたがフリーウェアです 4 動作機械条件 WINDOWS95以上の32ビットのWINDOWS で動作し、インターネットエクスプローラ5 以上のieが必要です また1024*768解像度の環境が必要 です これは画像ファイル名のあいまい認識のた めにie内部の正規表現ライブラリを使用して いるためです 出荷時環境でie5以上と言うのは一部の WIN98を含まないかもしれませんが、周辺機 器の対応などのために市井環境の大半がwin 2000以上と判断して、サポートしないこと にしました 旧winでieなどのバージョンアップをする 場合はごくまれに、ライブラリのバージョン 衝突がおこって旧式のいくつかのソフトが動 作しなくなる恐れがありますので自己責任で お願いいたします また印刷のためには設定がインストールさ れているプリンタ環境が必要です 1024ピクセル解像度については、エク スプローラの性質に理由があります ieの画像表示はCADのようなベクトル形 式ではないので、標準表示でも最大表示でも 画像の大きさは変わりません、 ただこのプログラムは画面のハードコピー ですので 標準表示と最大表示で表示内容がことなる 場合、印刷も異なってしまいます 作者は1024*768画面モードで、エ クスプローラの最大表示(全画面表示ではな い)において、画像のピクセルサイズと文字 ピッチの調整をおこないました 出力ファイルoutputCH.HTMで表示の調節と 印刷をおこなう場合、かならずこのモードで おこなってください 5 具体的な使用方法 アーカイブCentH002.zipを解凍し、動作 ファイルCentH002.htmをデスクトップに置 いてください デスクトップで動作します 該当ファイルをクリックするとデスクトッ プに使用画像格納フォルダCentIMGwが作られ ます このなかにHTMLで使用する画像をコピーし、 このなかに作られているバッチ歯車ファイル IMGlist.batをクリックしてください 画像リストがメモ帳の内容として表示され ます 画像を出力にくみこむ場合には、このファ イル名を前述の使用法書式にしたがってテキ スト原稿の所定の位置にコピーしてください 斜め線区切りとファイル名のあいだにスペ ースなどが挟まっていると認識しないことが あります ファイルの動作画面は以下です 0.01相当機能の解説ははぶきますので、 まず0.01 readmech.txtを読んでください ー--------------------------------__[]X 旧0.01相当機能画面:ファイル関係と実行ボ タン 一行を空白含めて何文字に設定するかの窓 初期値31文字 ------ーー------------------------------ <0.02追加操作画面> 「両頁印刷モード切り替えボタン」 これを押すと左右2ブロック表示印刷にな ります 「1ページあたりに何行収めるかの設定窓」 初期値40行 左右ともブロックあたりの行数です 「折り目領域に空白文字を何文字収めるかの 設定窓」 初期値5文字 横用紙を中央で折ったとき、折り目の左右 にまたがる余白です 5文字の場合、左右で2文字半ずつの配分 になります 「A3 4ページ印刷モード切り替えボタン」 「A3モード時の上下余白の幅の調整窓」 初期値10行 項目6--3参照 「画像ページの縦のピクセル数の自動手動調整」 「現在のピクセル数の表示と入力」7--1参照 「テスト印刷用ボタン」項目全般6参照 ---------------------------------------- 旧0.01 文字大きさ、色設定画面 ---------------------------------------- 設定項目は0.02分は画面の中央になり ます メッセージ言語はENGJPNボタンで切り替え てください ※日本語の文書を処理する場合は日本語モー ドでおこなってください 紙印字では英語モードでも日本語モードで も文字がずれることはありませんが、画面表 示のうえではどうやら半角文字と全角文字は 表示の幅が厳密には違うらしく、空白調整を すべて半角スペースで行う英語モードでは画 面の文字の左右の調整がずれることがありま す この現象は実は0.01製作時にも出てい ましたが原因がわかりませんでした 今回の改良で0.01相当機能でも、文字 のずれは最小限に抑えられています 6 印刷用紙寸設定 まず最初に、両頁印刷モードボタンを押し てください 以下に述べる項目はHTMLでは初期値の文字 ピッチ3番(タグH3相当)です 文字の大きさや色を変更している場合は別 途の数値が必要になる場合があります 中折れコピー誌用出力なので、用紙設定は、 通常の縦むきではなく、横むき設定にし、出 力された原本からのコピーを横に折ってステ ープラーなどで止める流れになります 当然、画面のハードコピーが用紙の切れ目 にきちんと一致する必要がありますので、プ リンタの設定を事前にあわせておく必要があ ります 設定するためのサンプル画面の機能を用意 してあります また、本番印刷のときはかならず画面の印 刷プレビューで印刷画面を確認してからおこ なうことにしてください ---------------------------------------- 初期設定では、一行あたり20文字(禁則 処理条件があるので21文字)40行なので 800文字で400字詰め原稿用紙2枚分 が一ページです 0.01では30文字でしたが、一画面あ たり2ページ収納するので、文字数の初期設 定を減らしました 操作方法は、HTMLファイルのハードコピー ですので 出力WEBファイルを表示したエクスプロー ラのツールバーから印刷設定をし、印刷する 流れになります 操作画面が表示されているエクスプローラ を設定しても反映されないことがあります 設定用テストファイルボタンを押すと、現 在の設定値のテストの内容で 汎用名出力ファイルoutputCH.htmがデス クトップにでますのでそれをクリックした画 面でエクスプローラ自体印刷の設定をしてく ださい 設定を正常終了した場合は、この画面を終 了させないで本番原稿を操作画面に読み込ま せ、おなじ出力ファイルoutputCH.htmの新 規更新あつかいで本番の結果を確認する流れ のほうがよいと想います 本番の印刷中も、印刷がずれた時点で適宜 印刷を中止してください 6--1 印刷フォント また、インターネットエクスプローラの画 面ハードコピーのフォントの初期設定はゴシ ック体です 文章を読みやすい明朝体にする場合は以下 の項目を操作する必要があります エクスプローラのツールバー(ここではie 8の例)より、 ツール > インターネットオプション >デザイン>フォント WEBページフォント| テキスト形式フォント|ともにMS明朝 前者:WEB表示は変更する必要は無いか もしれません また@MS明朝、MSP明朝は指定しない でください 6--2 ページ区切りのプリンタ設定 ページ区切りをダイレクトな命令としてプ リンタに送ることはできないので、プリンタ の設定で上下余白を調整し、用紙に内容をき ちんと分配する必要があります ---------------------------------------- A4用紙、横扱い 一ページ40行の例 ---------------------------------------- 6--2--1 ページ設定 エクスプローラのツールバーから ファイル>ページ設定 A4 横選択 左余白 0 右余白 0 上余白 24ミリ 下余白 24ミリ 縮小してすべておさめる項目は解除 6つのヘッダフッタ項目はすべて空選択 ページフッタは拙作の機能が添付します フォント選択は押さない ここで設定しても反映されません ---------- 6--2--2 印刷拡大 エクスプローラのツールバーより ファイル>印刷プレビュー 拡大メニューは100パーセント(原寸) この画面で最後まで均等割付であることを 確認し、この画面のメニューから印字しまし た ---------------------------------------- これで作者の環境は40行一ページ扱いで 均等に配分されました なお、かならずすべてのプレビューを確認 し、印刷するときは最初の一枚のみ必ず、た めし刷りをしてください 6--3 4ページ印刷について 内容が長大で、ページ数が巨大になるとき、 コピーコストを下げるために、大版紙に一気 に4ページ出す機能です 使用する場合は4ページモード変更ボタン を押してください この機能を使うと、たとえば1ページから 4ページまでがA3一枚にはいります 具体的にはたいした機能ではなく、表示画 面でA3のきりしろマージンを調整するだけ の機能です 普通のコピーコストは、B5からA3まで おおむね10円程度ですが もしA4 2ページを A3 4ページと して出力できればコストが半分になります もちろんA3 4ページで出した原本をコ ピーしたあとはさみなどで半分のサイズに切 り分ける手間は発生します ボタンを押して4ページ機能を有効にし、 6--3--1 A3縦印刷設定 中途空行設定を初期値6で、テストテキ ストボタン、outpuCH.HTM click 印刷設定はエクスプローラのメニューから ファイル > ページ設定 ---------- A3 縦選択 のこりはA4時とまったくおなじです 左余白 0 右余白 0 上余白 24ミリ 下余白 24ミリ ファイル > 印刷プレビュー 100パーセント ------------ 印刷がずれる場合はまず中途空行設定の値 で調整してください 上下余白マージンはいじらなくてもよいと 想います ---------- 2ページ出力も、4ページ出力も上記の例 とことなる用紙、文字行数値を使用する場合 は適宜使用者氏で余白の設定をおこなってく ださい 備考 P明朝について Pはプロポーショナルの意味で、文中の文 字幅ピッチの自動調整の意味です たとえば英文中で、iとwをまったくおなじ 幅で印字すると美しくない、というニーズが 存在し、これに対応した文字がプロポーショ ナルフォントです ただ、電算機業務などで、文字をあくまで もタイルのように考え、バイトコードの長さ として考えたいとき、プロポーショナルなフ ォントはたまに混乱の原因になることがあり ます 7 実際の操作の留意点 あらためて本番印刷の手順を解説します デスクトップ上のCentIMGwフォルダ に使用する画像ファイルをコピー フォルダ中のimglist.batをクリック 表示されるファイル名を原本テキストの 表示させたい部分に書式にしたがってコピ ー 書式:等倍の場合 /ファイル名.拡張子/コメント説明/100/ 操作画面の行数文字数等調整 テストファイル作製ボタンをクリック 作成されたデスクトップの outputCH.htm:出力の汎用名を選択してク リック その画面でエクスプローラの印刷設定を 行い、プレビューを確認 (ファイル > 印刷プレビュー) 実際のテスト印刷を実行、正常印刷の確 認、画面は閉じない 操作画面で本番テキストファイルを参照 して読み込み実行 outputch.htm画面を更新扱いで再表示 メニュー 表示 >最新の状態に更新 表示画面を最後までスクロールして正常 処理を確認 印刷プレビューを表示させて最後まで正 常割付実行を確認 本番印刷 異常があれば中途停止 -- 以上です このドキュメントを書いているときには、 エクスプローラの設定が印刷処理が終わっ てからも残るかどうかまでは確認をとって いません ともかくプレビューを最後まで確認をと ってから印刷をしてください なお、0.01との互換性のため出力フ ァイルoutputCH.htmはデスクトップに出 力する仕様になっていますが、 この出力をCDRやメモリスティックな どに入れて持ち出したい場合は、かならず 画像格納ファイルCentIMGwといっしょにコ ピーをしてください 7--1 HTML上の文字の大きさについて このツールは前回バージョンの設定を引 きつぎ、画面上の文字の大きさと色を設定 できるようになっています 当然画面上の文字を大きくすれば、同内 容の画面は大きくなり、用紙に対しての配 置も変更しなければなりません 製作者個人的には文字の大きさは3番H3 タグ相当を推奨します 文字の大きさを大きくすると、用紙に対 してはそのブロック中の行数を減らさなけ ればなりません また、システムは自分の指定された文字 の大きさを認識しおおまかな画像ページの 縦の大きさを自動調整しますが、演算が厳 密に合致しない場合は、画像ページの縦の ピクセル数をユーザカスタムにして任意の 数字を入れて出力outputCH.htmの表示と 見比べながら調整してください 原人ではなく印刷機 ハイデルベルグmiyama. <大袈裟 ======================================== 8 あとがき このドキュメントが8割完成した時点で、 プログラムの最終動作試験をおこなっていた のですがどうも意地の悪いテストをするとき にかぎって動作がすねてしまっていました これではなめたらあかんということであら たに状態遷移図を書き、その論理にしたがっ てコアコードをまったく新しいものに書き換 えてみました 動作は格段によくなり、無意味な変数を減 らすことにも成功しました これも、よい教科書を書いてくれた先輩の おかげですとそのときは感謝したものです * a たきつけられるべき学園生活とでも 先輩と言えば、わたしの知り合いの知り合 いに変な先輩:部活動がいて、勉学そっちの けで本を読み漁り、17歳のときにはもう大 学教養課程並の知識をもっている人がいまし た かれは理系でしたので、 (七五調で) よのなかは セリンアラニンメチオニン メソイノシットにマンニット、 シスチン、デスルフ、ヒドラーゼ♪ という鼻歌を歌いながらビーカーを洗って いたりするのです なんの意味ですかと後輩が聞くとおまえに ゃまだこの意味はわかるまい、早くここまで あがってくるんだな とのこと、ひとごとながら、嫌な奴ですね えと聞きながら想いました でも、ものごとにはさらに奥があって、そ の先輩のさらに先輩がそこにいて、 「おまえ、えらそうに説教垂れてるが、たと えば生体内でメチオニンがどういう役割をお っているのかしっているのかよ そういうのは単に知識のひけらかしにしか 過ぎないんだ おまえみたいなやつは大学にいったら、進 学学校の成績はいいかもしれないが、骨の髄 は田舎者だ、と馬鹿にされるぞ」 とやりこめられましたが、それでももとも と快活で外交的なその年下の先輩の性格はか わりませんでしたね、とのこと でも、なんでこのエピソードをここに書く かというと 一昔前の学園は、このように先輩や教師か らの挑発がくやしさとあこがれをやたらにた きつけられる場所だったのです ときには、勉強をふくめて 妙に素直でおとなしい割りには、実際には 解決できない不安を溜め込んでいる不安定な いまの言い訳青年とは民族が違うような気が します いまの子供たちに一番必要なものは、挑発 されてあこがれをたきつけられることなのか もしれません 振り返ると、親の時代や本人の幼少期に貧 しさを体験しないと、じぶんが前にむかうた めに必要な飢えをワクチンのように植え付け ることができないのかもしれないと想ったり もします また、学園内でのよのような焦燥競争がい わば帯紐を生み、それが先輩後輩の社会の縦 糸となって、社会と言うテキスタイルをおり あげていくのだとかんがえれば、すくなくと も学閥心理というものもあながちわるいもの ではないかもしれません この年になって私立高校などをその経営方 針からながめてみると、たしかにそのような ことを意識して生徒指導をしているのかもな あと想ったりします 個人的には、高校進学は男子校女子高の私 立でなくては意味が無いのかもしれないとも 想っています 競争率も1を割り、なおかつ一般的には卒 業後も社会はかならずしも明るくはみえない 時代に惰性で公立校にいくと、モラトリアム のだるさだけが身についてしまいかねません あまり政策にものを申すのは個人的には避 けているのですが、そういう意味では、この 現実、公立高校無償化というものはあまり意 味が無いかもしれません 高校以上は、あくまで義務教育ではないの で勉強したくなければ中卒で働くべきですね b 自分で学び遊ぶこととでも 私立高校というものはあくまで高額な学費 を親御さんが出していると言う意味では、親 が直接子弟を訓育しているようなものです 抽象経済学のような言い方をゆるしてもら えば、家族の内部で人格が均一であるのなら ば、それはあくまで自己努力の一種です 自分で勉強すると言うことは、それをもっ と幼少のところまでさかのぼれば、いかに自 分の工夫で安く楽しくあそぶか、ということ にいきあたるでしょう 自分の幼少時代ともだぶりますが、70年 代、ようやっと飢えなくても済みそうだ、と いうレベルの時代まで経済が復興してきた時 代、 世の中にはこたつができました とってもぬくいこたつです 定番は、みかんと猫、そしてお茶の間テレ ビです (トイレに行くなら私にもコーヒーいれてき てー えー自分でいれればいいじゃん だっ てあったかいから出たくないんだもん) このような日本の正月の原風景、こどもた ちが、さて、あそぶかという気になったとき ・たこあげ ・ゲーム機 のふたつの分岐ができたことがたとえばみ ながくるしむ2011年現在の閉塞感の象徴 としての一つのとてもよいたとえであること はまちがいないかもしれません 現在はゲーム業界も深刻な不況であり、い たづらに悪者を作って勇者をけしかけるよう な愚行はしたくないのですが、まあ象徴とし て社会に与えたことの責任は自覚しておいて ほしいとはおもっています 社会も自然のなかにあり、社会も自然法則 にしたがって動いているので、自然や自然法 則のなかで遊んだり苦労したりすることは決 して無駄にはならないはずです たこの飛ぶ仕組みを自然法則を無意識にも かんじながらも意識しなければたこあげはで きません また、ゲームのなかにたとえばカレーライ スを出す呪文があったとして、それはけっし てカレーライスの作り方を覚えたわけではあ りません イソップ寓話だったかなんだったか、ほう きに水汲みをさせる呪文を覚えるために必要 な修行は、厳しい修行を3年つづけなければ ならなかったような記憶があります それよりはまず目の前のふろおけに自分の 力で水を汲むべきでしょう ゲームの舞台になることが多い魔法の世界 と言うものはそんなものです メディアと言うものは、90分や16ペー ジというかぎられた枠のなかに内容を収めな ければならず、しばしば詳細を簡略化させな ければ収まらない場合が多々あります 掌編創作や、回路の小さなゲームのなかに 小道具として魔法をもちだすのは、単純に製 作労力を省力化するためです 閉じた世界で覚えた単純な呪文は、外の世 界では役に立ちません カレーライスの作り方で言えば、たとえば じゃがいもの皮をむくのが面倒だからと言っ ても、けっして皮のまま四つ切で煮込んでは いけません 土壌細菌やその耐環境胞子は、100度で は完全に死滅させることができないので、こ のようなカレーは、つくったその日に食べな ければなりません また電気釜が無ければ御飯は炊けないとい うのもまちがいです 充分に30分ほど水を米に吸わせれば、片 手鍋でもかんたんに炊くことができます 象徴として、ゲーム機というものは少年の 心理における安易な官僚主義のようなものか もしれません 子供のうちから、楽をしているような気持 ちになっては、それはとうぜん、社会や国際 注文をこなせる戦力にはなりえないでしょう カレーが欲しかったら、ぜひ自分自身で作 ってください それは、現実社会とこの社会を作った先輩 達への礼儀です Miyama. ========================================