Jump to content

Recommended Posts

Posted (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 by Diana (Cda)
Posted (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 by Diana (Cda)
Posted (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 by Diana (Cda)
  • Solution
Posted

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."

 

Posted
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.

:)

  • Diana (Cda) changed the title to [RESOLVED] Weird issue with quotation marks ...
  • Developers
Posted
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.
  :)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...