Re: Converting from unicode to ASCII

2020-09-23 Thread Mark Wieder via use-livecode
On 9/23/20 4:50 PM, J. Landman Gay via use-livecode wrote: Heh. Now you understand why I didn't want another lookup table. :) OTOH, one of the cardinal rules of data design is *not* to use real data as an index into data. YMMV. -- Mark Wieder ahsoftw...@gmail.com

Re: Converting from unicode to ASCII

2020-09-23 Thread J. Landman Gay via use-livecode
Heh. Now you understand why I didn't want another lookup table. :) -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On September 23, 2020 5:27:06 PM Mark Wieder via use-livecode wrote: On 9/22/20 11:10 PM, J. Landman Gay via

Some problems with an old stack that gets regular updates

2020-09-23 Thread matthias rebbe via use-livecode
Hello, i have some problems with a stack which i update very often. The stack was created 4 or 5 years ago, maybe even some more years ago. The gets regular updates as my time allows. In Standalone Settings i have set the option to manually select inclusions. I am working with LC 9.6.1, but

Re: Livecode S3 library for AWS compatible object store

2020-09-23 Thread Monte Goulding via use-livecode
Hi Mark If you would like to create an enhancement request at quality.livecode.com we can see what we can do. If it’s just a matter of changing the host (currently hard coded as s3[-].amazonaws.com ) then it’s a relatively trivial patch.

Re: Converting from unicode to ASCII

2020-09-23 Thread Mark Wieder via use-livecode
On 9/22/20 11:10 PM, J. Landman Gay via use-livecode wrote: There's more to it than that; the server runs a cron job hourly that indexes all its files and creates AWS secure URLs for each. The app downloads that lookup file on demand. When the user selects a name from a list, the selection is

Re: Converting from unicode to ASCII

2020-09-23 Thread Bob Sneidar via use-livecode
FYI I have a rudimentary document storage system developed where I can “check out” a document from my app so that no one else can check it out, which downloads the file from it’s repository into a temp folder. The user can then edit or work with the file, then check it in. It RETAINS the

Re: Converting from unicode to ASCII

2020-09-23 Thread Richard Gaskin via use-livecode
For an ongoing need like that on a substantial project, I'd automate it: She works on her master copy, then presses a button. Done. The button saves the stack, copies it to the munged name, and uploads it for her, even verifying the integrity of the upload afterward (machines don't mind the

Re: Converting from unicode to ASCII

2020-09-23 Thread Lagi Pittas via use-livecode
Hi Jacq, Since you don't do Chinese then I think what I suggested would work except for bulgarian and other non latin alphabets. (which you could use a translation table for). It also is compatible with all the previous names as the extract and tagging on the end will only happen with new

Re: Converting from unicode to ASCII

2020-09-23 Thread J. Landman Gay via use-livecode
On 9/23/20 1:26 PM, Richard Gaskin via use-livecode wrote: My only suggestion was to change how the existing munger works to satisfy the two problem areas identified: that names not be too long, and that any munger not remove so many characters as to make the file name non-unique or empty.

Re: Converting from unicode to ASCII

2020-09-23 Thread Bob Sneidar via use-livecode
Yes I understand that I was thinking of using the method for something I need. Bob S On Sep 23, 2020, at 11:47 AM, Richard Gaskin via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: No lookup table is needed at all if the relationship between the original string and the resulting

Re: Converting from unicode to ASCII

2020-09-23 Thread J. Landman Gay via use-livecode
On 9/23/20 1:47 PM, Richard Gaskin via use-livecode wrote: But so far I haven't read anything requiring this to work in both directions.  Did I miss something?  Does she also rely on an unmunger function? No, you're correct, I only need the conversion to go one-way. The cron job creates

Livecode S3 library for AWS compatible object store

2020-09-23 Thread Mark Clark via use-livecode
Hello, I have been away from LC for a while and noticed that there is now an AWSS3 library. Looks great and simple. However, this seems from a cursory read to be actually tied to AWS vs a more generic S3 wrapper allowing arbitrary endpoints. Is there a mechanism to point this at S3 compatible

Re: Converting from unicode to ASCII

2020-09-23 Thread Richard Gaskin via use-livecode
No lookup table is needed at all if the relationship between the original string and the resulting munged file name never needs to also work the other direction. If bidirectional derivation is needed, given the limitations imposed by AWS' naming limitations I would see no way to avoid

Re: Converting from unicode to ASCII

2020-09-23 Thread Bob Sneidar via use-livecode
Understood, but if it were reversible, it would eliminate the necessity of a lookup table as an intermediary. Bob S > On Sep 23, 2020, at 11:26 AM, Richard Gaskin via use-livecode > wrote: > > If I understand her problem correctly, file identification need only be in > one direction. > >

Re: Converting from unicode to ASCII

2020-09-23 Thread Richard Gaskin via use-livecode
If I understand her problem correctly, file identification need only be in one direction. As far as I can tell from the description, everything that needs to determine which file to access does so by using a string from which the hashed file name can be derived. That she already has a

Re: Converting from unicode to ASCII

2020-09-23 Thread Bob Sneidar via use-livecode
Will binaryEncode get you back to the filename? Bob S On Sep 23, 2020, at 8:03 AM, Richard Gaskin via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: J. Landman Gay write: > I'm looking for a way to create non-unicode file names > based on the string that comes out of the

Re: Converting from unicode to ASCII

2020-09-23 Thread Bob Sneidar via use-livecode
Duh. That was a stupid question. How do you get back to the filename? Bob S On Sep 23, 2020, at 8:08 AM, Bob Sneidar mailto:bobsnei...@iotecdigital.com>> wrote: Will binaryEncode get you back to the filename? Bob S On Sep 23, 2020, at 8:03 AM, Richard Gaskin via use-livecode

Re: Converting from unicode to ASCII

2020-09-23 Thread Richard Gaskin via use-livecode
J. Landman Gay write: > I'm looking for a way to create non-unicode file names > based on the string that comes out of the database. Ah, public clouds... Amazon's S3 docs say just encoding in UTF-8 should suffice, but then they also list a lot of characters they consider "special", but common

Re: Converting from unicode to ASCII

2020-09-23 Thread Bob Sneidar via use-livecode
You could extract the filename part of the path returned by tempfile() and use that anywhere. That would require something to track the visible name linked to the stored filename tho’. Bob S On Sep 22, 2020, at 11:10 PM, J. Landman Gay via use-livecode mailto:use-livecode@lists.runrev.com>>

Re: Converting from unicode to ASCII

2020-09-23 Thread Paul Dupuis via use-livecode
On 9/22/2020 6:48 PM, J. Landman Gay via use-livecode wrote: I have a stack with an index. When a user clicks a line, a handler uses the clicktext to create a file name which is always the clicktext plus the ".livecode" extension. The stack is then downloaded from an AWS server and displayed.

Re: Create image from SVG widget

2020-09-23 Thread Brian Milby via use-livecode
If it is placed in a library that is distributed with the IDE, then you wouldn’t need to worry about the LCB side of it. If it is easy enough to translate a path in the compile code, LCB wouldn’t be needed at all. I just didn’t spend enough time to figure it out. Sent from my iPhone > On Sep

Re: Create image from SVG widget

2020-09-23 Thread Klaus major-k via use-livecode
Hi Brian, > Am 23.09.2020 um 14:12 schrieb Brian Milby via use-livecode > : > > It doesn’t require an actual file, just an XML document. yes, I understood that already. 8-) > I posted LCB code to convert the SVG path to what is needed for the compile. > It will require an engine change or

Re: Create image from SVG widget

2020-09-23 Thread Brian Milby via use-livecode
It doesn’t require an actual file, just an XML document. I posted LCB code to convert the SVG path to what is needed for the compile. It will require an engine change or LCB to get the path translated to remove top/left extra space. I think the best way would be to update one of the LCB

Re: Converting from unicode to ASCII

2020-09-23 Thread Lagi Pittas via use-livecode
Assuming all the languages are latin type alphabets (no chinese, Japanese , Sanskrit ;-) ) (but see later for a fix?) I would replace the charactes like the E with umlout/cedilla and other dicritics with the "naked" character but for others that can't remove them BUT add to the end of the

Re: Converting from unicode to ASCII

2020-09-23 Thread scott--- via use-livecode
What about just converting to UTF8. Wouldn’t that coerce it into ASCII? — Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftware.com/ email sc...@elementarysoftware.com > On Sep 22, 2020, at 3:48 PM, J. Landman Gay via use-livecode > wrote: >

Re: Create image from SVG widget

2020-09-23 Thread Klaus major-k via use-livecode
Hi all, FYI: I just created an enhancement request to make drawingSVGCompile also work internally with a widget: > Am 22.09.2020 um 10:08 schrieb Klaus major-k via use-livecode > : > Hi Brian, >> Am 22.09.2020 um 05:38 schrieb Brian Milby via

Re: Converting from unicode to ASCII

2020-09-23 Thread Richmond Mathewson via use-livecode
"This communication may be unlawfully collected and stored by the Agents of a large number of governments in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting,disseminating, or

Re: Converting from unicode to ASCII

2020-09-23 Thread Richmond Mathewson via use-livecode
Personally I think deleting everything that is not inwith the ASCII range is potentially a bit dangerous [suppose ALL the letters in the title are not inwith the ASCII range], so I would favour using some sort of lookup table/substitution list. Certainly letters such as accented 'e' can just be

Re: Converting from unicode to ASCII

2020-09-23 Thread J. Landman Gay via use-livecode
On 9/22/20 10:42 PM, Mark Wieder via use-livecode wrote: On 9/22/20 7:58 PM, J. Landman Gay via use-livecode wrote: Is this just a temporary filename (not long-term storage)? No, the stacks are uploaded to AWS and remain there, retrieved from the server on request. There are currently