seisiuneer / abctools

ABC Transcription tools based on abcjs
MIT License
41 stars 24 forks source link

Importing an ABC file on iOS #2

Closed revad closed 1 year ago

revad commented 1 year ago

I tested this mainly on Firefox on my iPhone (iOS 16) - I don't have Safari - but I checked it was the same on my wife's iPad.

I downloaded abc files from two sources - thesession and rudemex.co.uk. The filetype is shown (in the Files app - the icon is misleading) as 'Alembic 3d Scene' - see screenshot.

The effect is that abctools cannot load it - it's greyed out in the file selector. The workround is to rename the file, substituting .txt for .abc. The rename dialogue of the Files app makes that difficult by design.

I found a mention of this, but on Mac not iOS: https://developer.apple.com/forums/thread/664144

I wondered if the html input code could be amended to additionally accept these alembic files. AFAICS the accept attribute doesn't allow the extension to be used on iOS anyway - see note 1 here https://caniuse.com/input-file-accept So maybe - on mobile Webkit browsers - it could accept 'text' and alembic filetypes.

Dave

IMG_0241

seisiuneer commented 1 year ago

Hi Dave!I think the simplest workaround would be to disable the file name filtering completely on iOS. I’ll see what’s possible.All the best,MichaelOn Feb 8, 2023, at 1:11 AM, Dave Royal @.***> wrote: I tested this mainly on Firefox on my iPhone (iOS 16) - I don't have Safari - but I checked it was the same on my wife's iPad. I downloaded abc files from two sources - thesession and rudemex.co.uk. The filetype is shown (in the Files app - the icon is misleading) as 'Alembic 3d Scene' - see screenshot. The effect is that abctools cannot load it - it's greyed out in the file selector. The workround is to rename the file, substituting .txt for .abc. The rename dialogue of the Files app makes that difficult by design. I found a mention of this, but on Mac not iOS: https://developer.apple.com/forums/thread/664144 I wondered if the html input code could be amended to additionally accept these alembic files. AFAICS the accept attribute doesn't allow the extension to be used on iOS anyway - see note 1 here https://caniuse.com/input-file-accept So maybe - on mobile Webkit browsers - it could accept 'text' and alembic filetypes. Dave

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

seisiuneer commented 1 year ago

Hi Dave,

I made a change that should allow iOS devices to select both .ABC and .TXT files. I tested it on both my iPhone and iPad with both a .txt and .abc file stored in my iCloud account.

All the best,

Michael

On Wed, Feb 8, 2023 at 7:07 AM Michael Eskin @.***> wrote:

Hi Dave!

I think the simplest workaround would be to disable the file name filtering completely on iOS. I’ll see what’s possible.

All the best,

Michael

On Feb 8, 2023, at 1:11 AM, Dave Royal @.***> wrote:



I tested this mainly on Firefox on my iPhone (iOS 16) - I don't have Safari - but I checked it was the same on my wife's iPad.

I downloaded abc files from two sources - thesession and rudemex.co.uk. The filetype is shown (in the Files app - the icon is misleading) as 'Alembic 3d Scene' - see screenshot.

The effect is that abctools cannot load it - it's greyed out in the file selector. The workround is to rename the file, substituting .txt for .abc. The rename dialogue of the Files app makes that difficult by design.

I found a mention of this, but on Mac not iOS: https://developer.apple.com/forums/thread/664144

I wondered if the html input code could be amended to additionally accept these alembic files. AFAICS the accept attribute doesn't allow the extension to be used on iOS anyway - see note 1 here https://caniuse.com/input-file-accept So maybe - on mobile Webkit browsers - it could accept 'text' and alembic filetypes.

Dave

[image: IMG_0241] https://user-images.githubusercontent.com/3061165/217479730-a7e65775-ce74-451d-89e1-f36283fb4d5c.PNG

— Reply to this email directly, view it on GitHub https://github.com/seisiuneer/abctools/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4ZXL5MVDTKFLB2GHQV373WWNPKRANCNFSM6AAAAAAUU7TYZE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

--


Michael Eskin @.*** (619) 368-1854 (text/voice)

Home Page http://michaeleskin.com | Online Store https://michaeleskin.gumroad.com | Zoom Session http://michaeleskin.com/session | AppCordions http://appcordions.com | Flickr https://www.flickr.com/photos/eskin/albums


revad commented 1 year ago

WFM now on Firefox on iPhone,

I like that the yellow warning disappears. Mozilla and Chrome are hoping to be able to release non-Webkit browsers, so you may need to test for just Safari. https://www.theregister.com/2023/02/07/mozilla_google_apple_webkit/

I didn't find any more errors - and I mainly use Android anyway. Are you interested in suggested enhancements?