HydrogenAudio

CD-R and Audio Hardware => CUETools => Topic started by: Johnny Blade on 2020-09-05 23:30:27

Title: Editing .cue on Notepad
Post by: Johnny Blade on 2020-09-05 23:30:27
Hi there!

Is there any risk in editing .cue files in Notepad?
Title: Re: Editing .cue on Notepad
Post by: korth on 2020-09-06 04:08:59
Improper syntax. Saving to wrong format or encoding.
It also depends on the program. When encoded as UTF-8, BOM (byte order mark) may be required so the .CUE isn't interpreted as ASCII.
from the original CDRWIN manual
Quote
Cuesheet files are standard text (ASCII) files. You can use any text
editor, such as Notepad or Wordpad, to edit your cuesheet. Do not
save your cuesheet in any non-text format.
http://web.archive.org/web/20070221154246/http://www.goldenhawk.com/download/cdrwin.pdf (see Appendix A)

the Cue-Sheet Syntax also here
https://web.archive.org/web/20160123204637/http://www.digitalx.org/cue-sheet/syntax/

http://wiki.hydrogenaud.io/index.php?title=Cue_sheet
https://en.wikipedia.org/wiki/Cue_sheet_(computing)
Title: Re: Editing .cue on Notepad
Post by: jaybeee on 2020-09-06 10:49:35
I highly recommend using Notepad++ (https://notepad-plus-plus.org/) as a text editor. The encoded format can be changed, such as making it UTF-8-BOM. Plus, it's a veyr powerful tool in terms of editing.
Title: Re: Editing .cue on Notepad
Post by: Johnny Blade on 2020-09-06 15:31:06
Thanks a lot, guys!
Title: Re: Editing .cue on Notepad
Post by: Adil on 2020-11-23 23:55:43
I'm a little confused … In some messages I understood that it would be enough to save the .cue file in notepad and there would be no problem because that would be correct. It would be enough to save in the current standard format, "UTF-8".

After all, when editing a .cue file in notepad, should you necessarily, or not, save it in the "UTF-8-BOM" format?
Title: Re: Editing .cue on Notepad
Post by: korth on 2020-11-24 01:04:55
It depends on the original file format, what was edited and which program is reading the CUE.
If the original CUE was ANSI and the edits made included all ANSI characters then the file will be saved as ANSI.
If the original CUE was UTF-8-BOM, the file will be saved as UTF-8-BOM after edits.
If the original CUE was ANSI and the edits made included non-ANSI characters then you will be prompted to save the file in a format that supports Unicode characters.

This thread is in the CUETools board. CUETools will interpret a UTF-8 CUE as all ANSI characters. If you edited an ANSI CUE using non-ANSI characters then when prompted to save the file in a format that supports Unicode characters, you should save as UTF-8-BOM so CUETools will recognize the Unicode characters you added in your edit.
Title: Re: Editing .cue on Notepad
Post by: Adil on 2020-11-24 03:09:58
@korth

It's clear now, thank you very much!