{"id":24,"date":"2016-05-14T12:24:06","date_gmt":"2016-05-14T12:24:06","guid":{"rendered":"http:\/\/bitmap2lcd.com\/blog\/?p=24"},"modified":"2016-11-28T17:49:03","modified_gmt":"2016-11-28T17:49:03","slug":"automation-and-postprocessing-tool","status":"publish","type":"post","link":"https:\/\/bitmap2lcd.com\/blog\/automation-and-postprocessing-tool\/","title":{"rendered":"Text Processing Automation Tool"},"content":{"rendered":"<p style=\"text-align: justify;\"><span style=\"color: #808080;\"><em><strong><em>Bitmap2LCD is a tool for programming small Graphic LCDs in embedded systems and a programmable text processing tool.<\/em><\/strong><\/em><\/span><\/p>\n<h2 style=\"text-align: justify;\">Text Processing Automation Tool<\/h2>\n<p style=\"text-align: justify;\"><em>( Function described here was updated from Bitmap2LCD V2.8a\u00a0 , and is available\u00a0with the Standard Edition license )<\/em><\/p>\n<p style=\"text-align: justify;\">One of the various features included in the bitmap2LCD GLCD toolbox is the Source Code \/ Text file processing.<\/p>\n<p style=\"text-align: justify;\">To find and replace text in many files or if it is needed to search and replace different data 100+ times at once, or to proceed to many other text processing tasks , the Bitmap2LCD\u00a0tool will help you saving precious\u00a0time to search and replace text in the blink of an eye.<\/p>\n<p style=\"text-align: justify;\">You can program <strong>batch scripts of your\u00a0repetitive text-processing<\/strong> tasks such as <strong>auto-replacement<\/strong> or\/and <strong>auto-insertion<\/strong> of any text in your source code,\u00a0save it to the disk (.SPP) and define it as the current active batch of\u00a0a project.<\/p>\n<p dir=\"ltr\" style=\"text-align: justify;\">The list of functions in the batch script makes it possible to search automatically for text strings within the code and based on the paired actions, decide whether the alternative text string shall overwrite the text string searched for, or be placed after it.<\/p>\n<p dir=\"ltr\" style=\"text-align: justify;\">\u00a0Here&#8217;s the list of the functions available\u00a0in the bitmap2LCD text processing tool<\/p>\n<p dir=\"ltr\" style=\"text-align: justify;\"><em>( Note :\u00a0Addition of new functions in the future , also see blue arrow below in fig1.\u00a0)<\/em><\/p>\n<h2 dir=\"ltr\" style=\"text-align: justify;\"><strong>List of the conditions and modal switches<\/strong><\/h2>\n<p style=\"text-align: justify;\"><strong>if &#8216;text&#8217;<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>if not &#8216;text&#8217;<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>while &#8216;text&#8217;<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>if line number(index)<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>if last line<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>if flag<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>if not flag<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>and &#8216;text&#8217;<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>and flag<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>and not &#8216;text&#8217;<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>and not flag<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>or &#8216;text&#8217;<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>or flag<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>or not &#8216;text&#8217;<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>or not flag<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>begin of loop<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>end of loop<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>search back from line end<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>search from line begin<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>case sensitive on<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>case sensitive off<\/strong><\/p>\n<p style=\"text-align: justify;\">..<\/p>\n<h2 style=\"text-align: justify;\"><strong>List of the functions<\/strong><\/h2>\n<h2 style=\"text-align: justify;\"><strong>then set flag<\/strong><\/h2>\n<p style=\"text-align: justify;\"><strong>then reset flag<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>then insert (index)&#8217;text&#8217;<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>then overwrite (index)&#8217;text&#8217;<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>then remove &#8216;text&#8217;<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>then delete until &#8216;text&#8217;<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>then get integer (index)<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>then get hex (index)<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>then get float (index)<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>then insert integer (index)<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>then insert hex (index)<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>then insert float (index)<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>then next line<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>then delete line<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>then insert line<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>then save as &#8216;file&#8217;<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>then start copy<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>then stop copy<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>then start delete<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>then stop delete<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>then save copy as &#8216;file&#8217;<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>then load and insert &#8216;file&#8217;<\/strong><\/p>\n<p style=\"text-align: justify;\">etc..<\/p>\n<p dir=\"ltr\" style=\"text-align: justify;\">To program a batch , click Edit Current Batch or click New batch ( <em>buttons are located in the main menu<\/em> )<\/p>\n<p dir=\"ltr\" style=\"text-align: justify;\"><a href=\"https:\/\/bitmap2lcd.com\/blog\/wp-content\/uploads\/2014\/02\/Bitmap2lcd-Batch-Processing-Menu.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2302\" src=\"https:\/\/bitmap2lcd.com\/blog\/wp-content\/uploads\/2014\/02\/Bitmap2lcd-Batch-Processing-Menu.png\" alt=\"bitmap2lcd-batch-processing-menu\" width=\"1059\" height=\"168\" srcset=\"https:\/\/bitmap2lcd.com\/blog\/wp-content\/uploads\/2014\/02\/Bitmap2lcd-Batch-Processing-Menu.png 1059w, https:\/\/bitmap2lcd.com\/blog\/wp-content\/uploads\/2014\/02\/Bitmap2lcd-Batch-Processing-Menu-300x48.png 300w, https:\/\/bitmap2lcd.com\/blog\/wp-content\/uploads\/2014\/02\/Bitmap2lcd-Batch-Processing-Menu-768x122.png 768w, https:\/\/bitmap2lcd.com\/blog\/wp-content\/uploads\/2014\/02\/Bitmap2lcd-Batch-Processing-Menu-1024x162.png 1024w, https:\/\/bitmap2lcd.com\/blog\/wp-content\/uploads\/2014\/02\/Bitmap2lcd-Batch-Processing-Menu-624x99.png 624w\" sizes=\"auto, (max-width: 1059px) 100vw, 1059px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/bitmap2lcd.com\/blog\/wp-content\/uploads\/2012\/05\/bitmap2lcd-Batch-Processing_3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2323\" src=\"https:\/\/bitmap2lcd.com\/blog\/wp-content\/uploads\/2012\/05\/bitmap2lcd-Batch-Processing_3.png\" alt=\"bitmap2lcd-batch-processing_3\" width=\"926\" height=\"621\" srcset=\"https:\/\/bitmap2lcd.com\/blog\/wp-content\/uploads\/2012\/05\/bitmap2lcd-Batch-Processing_3.png 926w, https:\/\/bitmap2lcd.com\/blog\/wp-content\/uploads\/2012\/05\/bitmap2lcd-Batch-Processing_3-300x201.png 300w, https:\/\/bitmap2lcd.com\/blog\/wp-content\/uploads\/2012\/05\/bitmap2lcd-Batch-Processing_3-768x515.png 768w, https:\/\/bitmap2lcd.com\/blog\/wp-content\/uploads\/2012\/05\/bitmap2lcd-Batch-Processing_3-624x418.png 624w\" sizes=\"auto, (max-width: 926px) 100vw, 926px\" \/><\/a><\/p>\n<p dir=\"ltr\" style=\"text-align: justify;\"><strong>fig. 1<\/strong><\/p>\n<p dir=\"ltr\" style=\"text-align: justify;\">Then choose the conditional function in the Function combo box (<span style=\"color: #0000ff;\"><strong><em>blue arrow<\/em><\/strong><\/span>)<\/p>\n<p dir=\"ltr\" style=\"text-align: justify;\">You <strong>can&#8217;t<\/strong> directly edit the text itself in the editor, but you can move the green cursor up and down\u00a0in the program (<strong><span style=\"color: #ff6600;\"><em>orange arrow<\/em><\/span><\/strong>) and\u00a0edit the <strong>index<\/strong> ,<strong> text<\/strong> and <strong>comment<\/strong> fields of the line selected by the cursor, in the fields at the top of the editor\u00a0(<span style=\"color: #008000;\"><strong><em>green arrow<\/em><\/strong><\/span>).<\/p>\n<p dir=\"ltr\" style=\"text-align: justify;\">Note that the <strong>index <\/strong>field can be left at <strong>&#8216;index&#8217;<\/strong> when the cursor position is not known nor fixed : Index is a numeric field , a cursor position of character or text\u00a0or if left at<strong> &#8216;index&#8217;<\/strong>, it will be the cursor position where the searched &#8216;text&#8217; was found in the conditional instruction\u00a0before (&#8216;if&#8217;) .<\/p>\n<p dir=\"ltr\" style=\"text-align: justify;\">An <strong>IF<\/strong>\u00a0followed by one or more <strong>THEN <\/strong>is a pass thru the whole text file\u00a0<strong>loaded in the Text Editor<\/strong> (second tab fig1. ) Please remember that every IF\u00a0+ Then(s) Pair is a new pass from the top to the end of the text file.<\/p>\n<p dir=\"ltr\" style=\"text-align: justify;\">In the above examples in fig1. and fig2 , a part of the file is copied in another file\u00a0named copy3.txt located in the folder defined as output files folder\u00a0.<\/p>\n<p dir=\"ltr\" style=\"text-align: justify;\"><a href=\"https:\/\/bitmap2lcd.com\/blog\/wp-content\/uploads\/2013\/11\/Bitmap2lcd-Batch-Processing-Menu_2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2306\" src=\"https:\/\/bitmap2lcd.com\/blog\/wp-content\/uploads\/2013\/11\/Bitmap2lcd-Batch-Processing-Menu_2.png\" alt=\"bitmap2lcd-batch-processing-menu_2\" width=\"1059\" height=\"168\" srcset=\"https:\/\/bitmap2lcd.com\/blog\/wp-content\/uploads\/2013\/11\/Bitmap2lcd-Batch-Processing-Menu_2.png 1059w, https:\/\/bitmap2lcd.com\/blog\/wp-content\/uploads\/2013\/11\/Bitmap2lcd-Batch-Processing-Menu_2-300x48.png 300w, https:\/\/bitmap2lcd.com\/blog\/wp-content\/uploads\/2013\/11\/Bitmap2lcd-Batch-Processing-Menu_2-768x122.png 768w, https:\/\/bitmap2lcd.com\/blog\/wp-content\/uploads\/2013\/11\/Bitmap2lcd-Batch-Processing-Menu_2-1024x162.png 1024w, https:\/\/bitmap2lcd.com\/blog\/wp-content\/uploads\/2013\/11\/Bitmap2lcd-Batch-Processing-Menu_2-624x99.png 624w\" sizes=\"auto, (max-width: 1059px) 100vw, 1059px\" \/><\/a><\/p>\n<p dir=\"ltr\" style=\"text-align: justify;\">fig 2.<\/p>\n<p dir=\"ltr\" style=\"text-align: justify;\">The Processing\u00a0batch can be\u00a0started\u00a0from the user interface, from a single button (see <span style=\"color: #ff0000;\"><strong>red arrow<\/strong><\/span>) or\u00a0from a main menu item.<\/p>\n<p dir=\"ltr\" style=\"text-align: justify;\"><em>See also the article about the automatic post-processing in this topic.<\/em><\/p>\n\t<div class=\"quickshare-container\">\r\n\t<ul class=\"quickshare-genericons quickshare-effect-round quickshare-effect-expand quickshare-small\">\r\n\t\t<li class=\"quickshare-share\"><\/li> \r\n\t\t<li><a href=\"https:\/\/facebook.com\/sharer.php?u=https%3A%2F%2Fbitmap2lcd.com%2Fblog%2Fautomation-and-postprocessing-tool%2F&amp;t=Text+Processing+Automation+Tool+<+Bitmap2LCD+Software+Tool+Blog+%3A%3A+about+GLCD+displays+and+Programming\" target=\"_blank\" title=\"Share on Facebook\"><span class=\"quickshare-facebook\">Facebook<\/span><\/a><\/li>\t\t<li><a href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fbitmap2lcd.com%2Fblog%2Fautomation-and-postprocessing-tool%2F&amp;text=Text+Processing+Automation+Tool+<+Bitmap2LCD+Software+Tool+Blog+%3A%3A+about+GLCD+displays+and+Programming\" target=\"_blank\" title=\"Share on Twitter\"><span class=\"quickshare-twitter\">Twitter<\/span><\/a><\/li>\t\t<li><a href=\"http:\/\/pinterest.com\/pin\/create\/button\/?url=https%3A%2F%2Fbitmap2lcd.com%2Fblog%2Fautomation-and-postprocessing-tool%2F&amp;media=https%3A%2F%2Fbitmap2lcd.com%2Fblog%2Fwp-content%2Fuploads%2F2012%2F05%2Fbitmap2lcd-Batch-Processing_3-300x201.png&amp;description=Bitmap2LCD+is+a+tool+for+programming+small+Graphic+LCDs+in+embedded+systems+and+a+programmable+text+processing+tool.+Text+Processing+Automation+Tool+%28+Function+described+here+was+updated+from+Bitmap2LCD+V2.8a%C2%A0+%2C+and+is+available%C2%A0with+the+Standard+Edition+license+%29%26hellip%3B\" target=\"_blank\" title=\"Share on Pinterest\"><span class=\"quickshare-pinterest\">Pinterest<\/span><\/a><\/li>\t\t<li><a href=\"http:\/\/linkedin.com\/shareArticle?mini=true&amp;url=https%3A%2F%2Fbitmap2lcd.com%2Fblog%2Fautomation-and-postprocessing-tool%2F&amp;title=Text+Processing+Automation+Tool&amp;source=Bitmap2LCD+Software+Tool+Blog+%3A%3A+about+GLCD+displays+and+Programming&amp;summary=Bitmap2LCD+is+a+tool+for+programming+small+Graphic+LCDs+in+embedded+systems+and+a+programmable+text+processing+tool.+Text+Processing+Automation+Tool+%28+Function+described+here+was+updated+from+Bitmap2LCD+V2.8a%C2%A0+%2C+and+is+available%C2%A0with+the+Standard+Edition+license+%29%26hellip%3B\" title=\"Share on Linkedin\" target=\"_blank\"><span class=\"quickshare-linkedin\">Linkedin<\/span><\/a><\/li>\t\t<li><a href=\"https:\/\/plus.google.com\/share?url=https%3A%2F%2Fbitmap2lcd.com%2Fblog%2Fautomation-and-postprocessing-tool%2F\" target=\"_blank\" title=\"Share on Google+\"><span class=\"quickshare-googleplus\">Google+<\/span><\/a><\/li>\t\t\t\t\t\t\t\t<li><a href=\"mailto:?subject=Bitmap2LCD+Software+Tool+Blog+%3A%3A+about+GLCD+displays+and+Programming:+Text+Processing+Automation+Tool&amp;body=https%3A%2F%2Fbitmap2lcd.com%2Fblog%2Fautomation-and-postprocessing-tool%2F\" target=\"_blank\" title=\"Share via Email\"><span class=\"quickshare-email\">Email<\/span><\/a><\/li>\t<\/ul>\r\n\t<\/div>\r\n","protected":false},"excerpt":{"rendered":"<p>Bitmap2LCD is a tool for programming small Graphic LCDs in embedded systems and a programmable text processing tool. Text Processing Automation Tool ( Function described here was updated from Bitmap2LCD V2.8a\u00a0 , and is available\u00a0with the Standard Edition license ) One of the various features included in the bitmap2LCD GLCD toolbox is the Source Code [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[11,670,7,8,9,10,6],"class_list":["post-24","post","type-post","status-publish","format-standard","hentry","category-source-code-postrocessing","tag-automation","tag-bitmap2lcd","tag-postprocessing","tag-programming-tool","tag-replace-text","tag-search-and-replace-text","tag-source-code"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/bitmap2lcd.com\/blog\/wp-json\/wp\/v2\/posts\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitmap2lcd.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitmap2lcd.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitmap2lcd.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/bitmap2lcd.com\/blog\/wp-json\/wp\/v2\/comments?post=24"}],"version-history":[{"count":40,"href":"https:\/\/bitmap2lcd.com\/blog\/wp-json\/wp\/v2\/posts\/24\/revisions"}],"predecessor-version":[{"id":2328,"href":"https:\/\/bitmap2lcd.com\/blog\/wp-json\/wp\/v2\/posts\/24\/revisions\/2328"}],"wp:attachment":[{"href":"https:\/\/bitmap2lcd.com\/blog\/wp-json\/wp\/v2\/media?parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitmap2lcd.com\/blog\/wp-json\/wp\/v2\/categories?post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitmap2lcd.com\/blog\/wp-json\/wp\/v2\/tags?post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}