Diana (Cda) Posted February 22 Posted February 22 (edited) I've been trying for 10 minutes to fix this snippet so it'll work but no luck. I've put quotation marks and apostrophes here, there, and everywhere trying to get the text to work despite the inherent marks within the text itself, switching them around, but no go. Keep getting varying error messages. I'm posting this as well because, perhaps, also, there's actually also an issue with all the accents (??). The experts that you are here will know better how to fix this without modifying the text and marks from the original ... <sigh> <g> $Text2clipboard = "The word catholic (derived via Late Latin catholicus, from the ancient Greek adjective καθολικός (katholikos) 'universal')[3][4]" & @CRLF & _ "comes from the Greek phrase καθόλου (katholou) 'on the whole, according to the whole, in general', and is a combination of the Greek words κατά (kata)" & @CRLF & _ "'about' and ὅλος (holos) 'whole'.[5][6] The first known use of "Catholic" was by the church father Saint Ignatius of Antioch" & @CRLF & _ "in his Letter to the Smyrnaeans (circa 110 AD).[7] In the context of Christian ecclesiology, it has a rich history and several usages.") Thank you! Edited March 4 by Diana (Cda)
Nine Posted February 22 Posted February 22 At first glance, you should put 2 double quotation marks around Catholic. ps. as you can see, it is black while the rest is red... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Diana (Cda) Posted February 22 Author Posted February 22 (edited) 29 minutes ago, Nine said: At first glance, you should put 2 double quotation marks around Catholic. ps. as you can see, it is black while the rest is red... Oh, dear, I'm sorry I wasn't clear. I did all of that. I put quotes and apostrophes all over the place, in and around the word Catholic, at the beginning and end of the line of syntax, also changing to apostrophes. But nothing worked. I usually manage by putting " and ' around things to eventually get the right combination but not this time. I spent about 15m actually, but just got so frustrated. And, then, didn't know if all the different alphabets would affect anything as I've never dealt with any of this type of text within a script before. I stripped out my edits and left the "raw" text as is, which is what I put above, so as to try not to confuse the issue further with my attempts. Anyway, this (quotation marks): "'about' and ὅλος (holos) 'whole'.[5][6] The first known use of """Catholic""" was by the church father Saint Ignatius of Antioch" & @CRLF & _ doesn't work. Neither did this (apostrophes): "'about' and ὅλος (holos) 'whole'.[5][6] The first known use of '"'Catholic'"' was by the church father Saint Ignatius of Antioch" & @CRLF & _ Sure, here the word doesn't stand out any more, so one would think it would work, but nope. Like I said I tried several different ways with different marks in different spots, i.e., corralling line, too, but nothing gave a working result. Anyway, thanks. Sorry I wasn't clear enough. Thought I had been <g>, but there you go. Hopefully someone knows how to fix this type of thing as I have other unrelated text I'd like to easily access in future copied from the web that has all sorts of symbols in it, too. Thank you!!! Edited February 22 by Diana (Cda)
Nine Posted February 22 Posted February 22 "'about' and ὅλος (holos) 'whole'.[5][6] The first known use of ""Catholic"" was by the church father Saint Ignatius of Antioch" & @CRLF & _ “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Diana (Cda) Posted February 26 Author Posted February 26 (edited) Still no joy, unfortunately ... Here is the edit I did based on the recommendation above (the "3rd" line): $Text2clipboard = "The word catholic (derived via Late Latin catholicus, from the ancient Greek adjective καθολικός (katholikos) 'universal')[3][4]" & @CRLF & _ "comes from the Greek phrase καθόλου (katholou) 'on the whole, according to the whole, in general', and is a combination of the Greek words κατά (kata)" & @CRLF & _ ; "'about' and ὅλος (holos) 'whole'.[5][6] The first known use of '"'Catholic'"' was by the church father Saint Ignatius of Antioch" & @CRLF & _ ; this doesn't work. See here below: "'about' and ὅλος (holos) 'whole'.[5][6] The first known use of ""Catholic"" was by the church father Saint Ignatius of Antioch" & @CRLF & _ ; no good, either "in his Letter to the Smyrnaeans (circa 110 AD).[7] In the context of Christian ecclesiology, it has a rich history and several usages.") I did a strict copy/paste to replace the problematic 3rd line, but I still get an error message: --------------------------- AutoIt Error --------------------------- Line 15 (File "E:\RESEARCH\1- 0. CATHOLIC TERM - ''katholikos'' (and extra text).au3"): $Text2clipboard = "The word catholic (derived via Late Latin catholicus, from the ancient Greek adjective ?a??????? (katholikos) 'universal')[3][4]" & @CRLF & "comes from the Greek phrase ?a????? (katholou) 'on the whole, according to the whole, in general', and is a combination of the Greek words ?at? (kata)" & @CRLF & $Text2clipboard = ^ ERROR Error: Error in expression. --------------------------- OK --------------------------- And Line 15 is the very line all this code starts on. Where did I go wrong? Thank you! Edited February 26 by Diana (Cda)
Solution Nine Posted February 26 Solution Posted February 26 You cannot put comments in a middle of a long multi-lines statement. Also your string statement is ending with a parenthesis. Here the right statement : $Text2clipboard = "The word catholic (derived via Late Latin catholicus, from the ancient Greek adjective καθολικός (katholikos) 'universal')[3][4]" & @CRLF & _ "comes from the Greek phrase καθόλου (katholou) 'on the whole, according to the whole, in general', and is a combination of the Greek words κατά (kata)" & @CRLF & _ "'about' and ὅλος (holos) 'whole'.[5][6] The first known use of ""Catholic"" was by the church father Saint Ignatius of Antioch" & @CRLF & _ "in his Letter to the Smyrnaeans (circa 110 AD).[7] In the context of Christian ecclesiology, it has a rich history and several usages." “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Diana (Cda) Posted March 4 Author Posted March 4 On 2/26/2025 at 3:40 PM, Nine said: You cannot put comments in a middle of a long multi-lines statement. Also your string statement is ending with a parenthesis. Here the right statement : $Text2clipboard = "The word catholic (derived via Late Latin catholicus, from the ancient Greek adjective καθολικός (katholikos) 'universal')[3][4]" & @CRLF & _ "comes from the Greek phrase καθόλου (katholou) 'on the whole, according to the whole, in general', and is a combination of the Greek words κατά (kata)" & @CRLF & _ "'about' and ὅλος (holos) 'whole'.[5][6] The first known use of ""Catholic"" was by the church father Saint Ignatius of Antioch" & @CRLF & _ "in his Letter to the Smyrnaeans (circa 110 AD).[7] In the context of Christian ecclesiology, it has a rich history and several usages." Good to know re the comments (I put those in after testing each line; glad I left them in as I wouldn't have know that about comments and multi-lines, otherwise ... <lol>!). Thank you, this works! I'll have to study the placement of everything. All the Greek and symbols made this one difficult to figure out.
Developers Jos Posted March 4 Developers Posted March 4 On 2/26/2025 at 9:40 PM, Nine said: You cannot put comments in a middle of a long multi-lines statement. Actually you can... this is perfectly proper syntax: #AutoIt3Wrapper_Run_Au3Check = n $Text2clipboard = " line 1" & _ " line 2" & _ " line 3" & _ ; test comment _ ; commentline by itself " line 4" ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $Text2clipboard = ' & $Text2clipboard & @CRLF & '>Error code: ' & @error & @CRLF) ;### Debug Console It is au3check that doesn't agree with it. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now