FreeShow icon indicating copy to clipboard operation
FreeShow copied to clipboard

ProPresenter Japanese/Chinese character convertion (GB2312)

Open johnanan1990 opened this issue 1 year ago • 3 comments

Hi! been testing and enjoying FreeShow so far but it has a bit of trouble handling special characters on import from ProPresenter.

Here's how the original looks Screenshot 2024-06-13 at 15 44 14

Here's how it looks after importing into freeshow Screenshot 2024-06-13 at 15 43 48

johnanan1990 avatar Jun 13 '24 06:06 johnanan1990

Okay, thanks. :)

vassbo avatar Jun 13 '24 08:06 vassbo

All ProPresenter songs are stored in base64 format, meaning all chararters have to be converted into just 64 characters, meaning special characters have to be encoded like this as shown in your example: \'d7\'a3\'b8\'a3\'a4\'ce\'b1\'ad. This specific unicode encoding is of type GB2312, but should be decoded to UTF-8 (祝福の杯).

We will need to redo the way text is decoded sometime, but this will not be prioritized. Maybe extracting the bytes, and using this: https://www.npmjs.com/package/text-decoder

vassbo avatar Jun 17 '24 13:06 vassbo

Sorry for the late reply! Thanks for looking into it!

I think I understand, appreciate the detailed explanation!

Thank you! John

On Jun 17, 2024, at 22:06, Kristoffer Vassbø @.***> wrote:

All ProPresenter songs are stored in base64 format, meaning all chararters have to be converted into just 64 characters, meaning special characters have to be encoded like this as shown in your example: 'd7'a3'b8'a3'a4'ce'b1'ad. This specific unicode encoding is of type GB2312, but should be decoded to UTF-8 (祝福の杯).

We will need to redo the way text is decoded sometime, but this will not be prioritized. Maybe extracting the bytes, and using this: https://www.npmjs.com/package/text-decoder

— Reply to this email directly, view it on GitHub https://github.com/ChurchApps/FreeShow/issues/577#issuecomment-2173350903, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJEVBF6WRN4C3G3OXQO3QZ3ZH3NNTAVCNFSM6AAAAABJHXLZA2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZTGM2TAOJQGM. You are receiving this because you authored the thread.

johnanan1990 avatar Jun 18 '24 00:06 johnanan1990

I could not figure out a working solution. I tried iconv-lite as well as text-decoder, but they could not properly decode even the raw bytes as GB2312 unfortunately, so it might be a different unusual format. But either way I'm closing this now as the imported text can be replaced manually.

vassbo avatar Aug 14 '24 12:08 vassbo

Will this link helps? https://greyshirtguy.com/blog/pro7fileformat1/

AngangGuo avatar Nov 10 '24 08:11 AngangGuo

Unfortunately not @AngangGuo!

vassbo avatar Nov 11 '24 07:11 vassbo