-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcd-text-format.html
More file actions
1129 lines (1067 loc) · 54.7 KB
/
Copy pathcd-text-format.html
File metadata and controls
1129 lines (1067 loc) · 54.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
<html>
<!-- Permission is granted to copy, modify, and distribute it, as long as the
references to the original information sources are maintained.
There is NO WARRANTY, to the extent permitted by law.
Copyright C 2011-2012 Thomas Schmitt scdbackup@gmx.net.
Copyright C 2012, 2025 Rocky Bernstein
-->
<!-- Created on August 22, 2026 by texi2html 1.82
texi2html was written by:
Lionel Cons <Lionel.Cons@cern.ch> (original author)
Karl Berry <karl@freefriends.org>
Olaf Bachmann <obachman@mathematik.uni-kl.de>
and many others.
Maintained by: Many creative people.
Send bugs and suggestions to <texi2html-bug@nongnu.org>
-->
<head>
<title>CD Text Format</title>
<meta name="description" content="CD Text Format">
<meta name="keywords" content="CD Text Format">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="texi2html 1.82">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.smallquotation {font-size: smaller}
pre.display {font-family: serif}
pre.format {font-family: serif}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: serif; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: serif; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.roman {font-family:serif; font-weight:normal;}
span.sansserif {font-family:sans-serif; font-weight:normal;}
ul.toc {list-style: none}
-->
</style>
</head>
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
<a name="Top"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="CD-Text-Format"></a>
<h1 class="settitle">CD Text Format</h1>
<blockquote><p>Permission is granted to copy, modify, and distribute it, as long as the
references to the original information sources are maintained.
There is NO WARRANTY, to the extent permitted by law.
</p>
<p>Copyright © 2011-2012 Thomas Schmitt <a href="mailto:scdbackup@gmx.net">scdbackup@gmx.net</a>.<br>
Copyright © 2012, 2025 Rocky Bernstein
</p></blockquote>
<p>CD Text provides a way to give disk and track information in an audio
CD. This information is used, for example, in CD players to
provide information about the audio CD.
</p>
<p>This document describes the information available in CD Text, and how
to decode and encode it.
</p>
<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top"><a href="#Encoding-and-Decoding-CD-Text">1. Encoding and Decoding CD Text</a></td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#Higher_002dLevel-Encoding">2. Higher-Level Encoding</a></td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#Acknowledgement">Acknowledgement</a></td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#List-of-Tables">List of Tables</a></td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#References">References</a></td><td> </td><td align="left" valign="top">
</td></tr>
</table>
<hr size="1">
<a name="Encoding-and-Decoding-CD-Text"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Top" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="#Top_002dLevel-CD-Text-Categories-_0028Pack-Types_0029" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="#Top" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="#Higher_002dLevel-Encoding" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Encoding-and-Decoding-CD-Text-1"></a>
<h1 class="chapter">1. Encoding and Decoding CD Text</h1>
<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top"><a href="#Top_002dLevel-CD-Text-Categories-_0028Pack-Types_0029">1.1 Top-Level CD Text Categories (Pack Types)</a></td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#Pack-Contents">1.2 Pack Contents</a></td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#Text-Pack-Types">1.3 Text Packs (<kbd>0x80</kbd>–<kbd>0x85</kbd>, <kbd>0x8e</kbd>)</a></td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#Misc-Pack-Types">1.4 Miscellaneous Pack Types (<kbd>0x86</kbd>, <kbd>0x87</kbd>, <kbd>0x8d</kbd>)</a></td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#TOC-Pack-Types">1.5 TOC Pack Types (<kbd>0x88</kbd>, <kbd>0x89</kbd>)</a></td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#Block-Size-Information-Type-_00280x8f_0029">1.6 Block Size Information Type (<kbd>0x8f</kbd>)</a></td><td> </td><td align="left" valign="top">
</td></tr>
</table>
<hr size="6">
<a name="Top_002dLevel-CD-Text-Categories-_0028Pack-Types_0029"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Encoding-and-Decoding-CD-Text" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="#Pack-Contents" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Encoding-and-Decoding-CD-Text" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="#Encoding-and-Decoding-CD-Text" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="#Higher_002dLevel-Encoding" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Top_002dLevel-CD-Text-Categories-_0028Pack-Types_0029-1"></a>
<h2 class="section">1.1 Top-Level CD Text Categories (Pack Types)</h2>
<p>CD Text information is grouped into <em>blocks</em>, each one in a particular
language. Up to 8 languages (or blocks) can be stored.
</p>
<p>Within a block, there are 13 categories of information, called <em>Pack
Types</em>.
</p>
<p>The CD Text categories are identified by a single-byte code.
See <a href="#table_003acategories">table:categories</a>.
</p>
<div class="float"><a name="table_003acategories"></a>
<table><tr><td> </td><td><pre class="smallexample"> 0x80: Title
0x81: Performers
0x82: Songwriters
0x83: Composers
0x84: Arrangers
0x85: Message Area
0x86: Disc Identification (in text and binary)
0x87: Genre Identification (in text and binary)
0x88: Table of Contents (in binary)
0x89: Second Table of Contents (in binary)
0x8d: Closed Information
0x8e: UPC/EAN code of the album and ISRC code of each track
0x8f: Block Size Information (binary)
</pre></td></tr></table>
</div><p><strong>Table 1.1: CD Text Categories
</strong>
</p>
<p>Additional notes regarding Pack Types:
</p><ul>
<li> Pack Types <kbd>0x8a</kbd> to <kbd>0x8c</kbd> although not specified are reserved for potential future use.
</li><li> Pack Types <kbd>0x86</kbd>, <kbd>0x87</kbd>, <kbd>0x88</kbd>, <kbd>0x89</kbd>, <kbd>0x8d</kbd> (Disc Identification, Genre Identification, Table of Contents, Second Table of Contents and Closed Information respectively) apply to the whole
disc, and cannot be attached to individual tracks.
</li><li> Pack Types <kbd>0x80</kbd>, <kbd>0x81</kbd>, <kbd>0x82</kbd>, <kbd>0x83</kbd>, <kbd>0x84</kbd>, <kbd>0x85</kbd>, and <kbd>0x8e</kbd> (Performers, Songwriters, Composers,
Arrangers, and Message Area respectively) have to be attributed to
each track if they are present for the whole disc.
</li><li> Pack Type <kbd>0x8f</kbd> (Block Size Information) describes the overall content of a block and in part of all other blocks.
</li></ul>
<p>The total size of a block’s attribute set is restricted by the fact
that it has to be stored in at most 253 records with 12 bytes of
payload. These records are called <em>Text Packs</em> described in the
next section. Since information such as the Disc and Genre
Identification is often the same across multiple tracks, a compact way
to repeat identical information is provided.
</p>
<hr size="6">
<a name="Pack-Contents"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Top_002dLevel-CD-Text-Categories-_0028Pack-Types_0029" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="#Text-Pack-Types" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Encoding-and-Decoding-CD-Text" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="#Encoding-and-Decoding-CD-Text" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="#Higher_002dLevel-Encoding" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Pack-Contents-1"></a>
<h2 class="section">1.2 Pack Contents</h2>
<p>Packs are stored on the CD in the sub-channel of the Lead-in of the
disc. The file ‘<tt>doc/cookbook.txt</tt>’ of the
<a href="http://libburnia-project.org/">libburnia</a> distribution describes
how to write the CD Text pack array to CD, and how to read CD Text
packs from CD. If you are just interested in a more high-level access
CD Text information without having to understand the internal
structure, you can use libcdio’s CD Text API for getting and setting
fields.
</p>
<p>The format is explained in part in Annex J of (<a href="#mmc3r10g_002epdf">MMC-3</a>), and in part by Sony’s documentation
<a href="#cdtext_002ezip">cdtext.zip</a>.
</p>
<p>Each pack consists of a 4-byte header, 12 bytes of payload, and 2 bytes
of CRC.
</p>
<p>The first byte of each pack contains the pack type. See
<a href="#table_003acategories">table:categories</a> for a list of pack types.
</p>
<p>The second byte often gives the track number of the pack. However, a
zero track value indicates that the information pertains to the whole
album. Higher numbers are valid for track-oriented packs (types
<kbd>0x80</kbd> to <kbd>0x85</kbd>, and <kbd>0x8e</kbd>). In these pack types, there
should be one text pack for the disc and one for each track. With TOC
packs (types <kbd>0x88</kbd> and <kbd>0x89</kbd>), the second byte is a track
number too. With type <kbd>0x8f</kbd>, the second byte counts the record
parts from 0 to 2.
</p>
<p>The third byte is a sequential counter.
</p>
<p>The fourth byte is the Block Number and Character Position Indicator.
It consists of three bit fields:
</p>
<dl compact="compact">
<dt> <em>bits 0-3</em></dt>
<dd><p>Character position. Either the number of characters which the current
text inherited from the previous pack, or 15 if the current
text started before the previous pack.
</p></dd>
<dt> <em>bits 4-6</em></dt>
<dd><p>Block Number (groups text packs in language blocks)
</p></dd>
<dt> <em>bit 7</em></dt>
<dd><p>Is 0 if single-byte characters, 1 if double-byte characters.
</p></dd>
</dl>
<p>The 12 payload bytes contain pieces of zero-terminated data. When
double-byte text is used, the zero is a double byte; otherwise it is a single ASCII NUL.
</p>
<p>A text may span over several packs. Unused characters in
a pack are used for the next text of the same pack type. If no text of
the same type follows, then the remaining text bytes are set to 0.
</p>
<p>The CRC algorithm uses divisor <kbd>0x11021</kbd>. The resulting 16-bit
residue of the polynomial division is inverted (xor-ed with
<kbd>0xffff</kbd>) and written as a big-endian number in bytes 16 and 17 of
the pack.
</p>
<p>The text packs are grouped in up to 8 blocks of at most 256 packs. Each
block pertains to one language. Sequence numbers of each block are
counted separately. All packs of block 0 come before the packs of block
1.
</p>
<p>The limitation of block number and sequence numbers implies that there are
at most 2048 text packs possible.
</p>
<p>If a text of a track (pack types <kbd>0x80</kbd> to <kbd>0x85</kbd> and
<kbd>0x8e</kbd>) repeats identically for the next track, then it may be
represented by a TAB character (ASCII 9) for single-byte texts, and
two TAB characters for double-byte texts. This is desirable because
there is a somewhat limited amount of space for CD Text — 256 * 12
bytes which may have to accommodate up to 99 tracks.
</p>
<p>The two binary bytes of pack type <kbd>0x87</kbd> are written to the first
<kbd>0x87</kbd> pack of a block. They may or may not be repeated at the start
of the follow-up packs of type <kbd>0x87</kbd>.
</p>
<hr size="6">
<a name="Text-Pack-Types"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Pack-Contents" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="#Misc-Pack-Types" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Encoding-and-Decoding-CD-Text" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="#Encoding-and-Decoding-CD-Text" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="#Higher_002dLevel-Encoding" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Text-Packs-_00280x80_002d_002d0x85_002c-0x8e_0029"></a>
<h2 class="section">1.3 Text Packs (<kbd>0x80</kbd>–<kbd>0x85</kbd>, <kbd>0x8e</kbd>)</h2>
<p>Pack types <kbd>0x80</kbd> to <kbd>0x85</kbd> and <kbd>0x8e</kbd> (Title, Performers,
Songwriters, Arrangers, Message Area and UPC/EAN code respectively)
contain a NUL-terminated string. If double-byte characters are used,
then two zero bytes terminate the text. Of these, all except the last,
<kbd>0x8e</kbd> or UPC/EAN code, are encoded according to their block’s
Character Code. This could be either as ISO-8859-1 single-byte
characters, as 7-bit ASCII single-byte characters, or as MS-JIS double
byte characters.
</p>
<p>Pack type <kbd>0x8e</kbd> is documented by Sony as:
</p><blockquote><p><em>UPC/EAN Code (POS Code) of the
album. This field typically consists of 13 characters.</em>
</p></blockquote>
<p>This is always ASCII encoded. It applies to tracks as “ISRC code
[which] typically consists of 12 characters” and is always ISO-8859-1
encoded. MMC calls these information entities “Media Catalog Number”
and “ISRC”. The catalog number consists of 13 decimal digits. ISRC
consists of 12 characters: 2 country code [0-9A-Z], 3 owner code
[0-9A-Z], 2 year digits (00 to 99), 5 serial number digits (00000 to
99999).
</p>
<hr size="6">
<a name="Misc-Pack-Types"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Text-Pack-Types" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="#TOC-Pack-Types" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Encoding-and-Decoding-CD-Text" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="#Encoding-and-Decoding-CD-Text" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="#Higher_002dLevel-Encoding" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Miscellaneous-Pack-Types-_00280x86_002c-0x87_002c-0x8d_0029"></a>
<h2 class="section">1.4 Miscellaneous Pack Types (<kbd>0x86</kbd>, <kbd>0x87</kbd>, <kbd>0x8d</kbd>)</h2>
<p>For pack type <kbd>0x86</kbd> (Disc Identification), here is how Sony describes this:
</p><blockquote><p><em>Catalog Number: (use ASCII Code) Catalog Number of the album</em>
</p></blockquote>
<p>So it is not really binary but might be non-printable, and should contain only
bytes with bit 7 set to zero.
</p>
<p>Pack type <kbd>0x87</kbd> (Genre Identification) contains 2 binary bytes
followed by NUL-byte-terminated text.
</p>
<p>You can either specify a genre code or the supplementary genre
information (without the code) or both. Neither is mandatory.
</p>
<p>Categories associated with
their Big-endian 16-bit value are listed in <a href="#table_003agenres">table:genres</a>.
</p>
<div class="float"><a name="table_003agenres"></a>
<table><tr><td> </td><td><pre class="smallexample"> 0x0000: Not Used. Sony prescribes this when no genre applies
0x0001: Not Defined
0x0002: Adult Contemporary
0x0003: Alternative Rock
0x0004: Children's Music
0x0005: Classical
0x0006: Contemporary Christian
0x0007: Country
0x0008: Dance
0x0009: Easy Listening
0x000a: Erotic
0x000b: Folk
0x000c: Gospel
0x000d: Hip Hop
0x000e: Jazz
0x000f: Latin
0x0010: Musical
0x0011: New Age
0x0012: Opera
0x0013: Operetta
0x0014: Pop Music
0x0015: Rap
0x0016: Reggae
0x0017: Rock Music
0x0018: Rhythm & Blues
0x0019: Sound Effects
0x001a: Spoken Word
0x001b: World Music
</pre></td></tr></table>
</div><p><strong>Table 1.2: Genre Categories
</strong>
</p>
<p>Sony documents report that this field contains:
</p><blockquote><p><em>Genre information that would supplement
the Genre Code, such as “USA Rock music in the 60’s”.</em>
</p></blockquote>
<p>This information is always ASCII encoded.
</p>
<p>Pack type <kbd>0x8d</kbd> Sony documents say:
</p><blockquote><p><em>Closed Information: (use 8859-1 Code) Any information can
be recorded on disc as memorandum. Information in this field will not
be read by CD-TEXT players available to the public.</em>
</p></blockquote>
<p>One can, however, read this information with an MMC READ TOC/PMA/ATP
command. (See Section 5.23 of <a href="#mmc3r10g_002epdf">mmc3r10g.pdf</a>).
</p>
<p>This field is always ISO-8859-1 encoded.
</p>
<hr size="6">
<a name="TOC-Pack-Types"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Misc-Pack-Types" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="#Block-Size-Information-Type-_00280x8f_0029" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Encoding-and-Decoding-CD-Text" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="#Encoding-and-Decoding-CD-Text" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="#Higher_002dLevel-Encoding" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="TOC-Pack-Types-_00280x88_002c-0x89_0029"></a>
<h2 class="section">1.5 TOC Pack Types (<kbd>0x88</kbd>, <kbd>0x89</kbd>)</h2>
<p>Pack type <kbd>0x88</kbd> records information from the CD’s Table of
Contents, as of READ PMA/TOC/ATIP Format <kbd>0010b</kbd>. See Table 237 TOC
Track Descriptor Format, Q Sub-channel of <a href="#mmc3r10g_002epdf">MMC-3</a>.
</p>
<p>This information duplicates information stored elsewhere and that can
be obtained by an MMC READ TOC/PMA/ATP command.
</p>
<p>The first pack of type <kbd>0x88</kbd> (Table of Contents) records in its
payload bytes as follows:
</p>
<table><tr><td> </td><td><pre class="smallexample"> 0 : PMIN of POINT A1 = First Track Number
1 : PMIN of POINT A2 = Last Track Number
2 : unknown, 0 in Sony example
3 : PMIN of POINT A2 = Start position of Lead-Out
4 : PSEC of POINT A2 = Start position of Lead-Out
5 : PFRAME of POINT A2 = Start position of Lead-Out
6 to 11 : unknown, 0 in Sony example
</pre></td></tr></table>
<p>The following packs record <kbd>PMIN</kbd>, <kbd>PSEC</kbd>, <kbd>PFRAME</kbd> of the
POINTs between the lowest track number (1 or <code>01h</code>) and the highest
track number (99 or <code>63h</code>). The payload of the last pack is padded
by zeros.
</p>
<p>Using the <kbd>.TOC</kbd> from Sony documents as an example:
</p><table><tr><td> </td><td><pre class="smallexample"> A0 01
A1 14
A2 63:02:18
01 00:02:00
02 04:11:25
03 08:02:50
04 11:47:62
...
13 53:24:25
14 57:03:25
</pre></td></tr></table>
<p>Encoding the above gives:
</p><table><tr><td> </td><td><pre class="smallexample"> 88 00 23 00 01 0e 00 3f 02 12 00 00 00 00 00 00 12 00
88 01 24 00 00 02 00 04 0b 19 08 02 32 0b 2f 3e 67 2d
...
88 0d 27 00 35 18 19 39 03 19 00 00 00 00 00 00 ea af
</pre></td></tr></table>
<p>Pack type <kbd>0x89</kbd> (Second Table of Contents) is not yet clear. It
might be a representation of Playback Skip Interval, Mode-5 Q
sub-channel, POINT 01 to 40. See Section 4.2.6.3 of <a href="#mmc3r10g_002epdf">MMC-3</a>.
</p>
<p>The time points in the Sony example are in the time range of the
tracks numbers that are given before the time points:
</p>
<table><tr><td> </td><td><pre class="smallexample"> 01 02:41:48 01 02:52:58
06 23:14:25 06 23:29:60
07 28:30:39 07 28:42:30
13 55:13:26 13 55:31:50
</pre></td></tr></table>
<p>Encoding the above gives:
</p><table><tr><td> </td><td><pre class="smallexample"> 89 01 28 00 01 04 00 00 00 00 02 29 30 02 34 3a f3 0c
89 06 29 00 02 04 00 00 00 00 17 0e 19 17 1d 3c 73 92
89 07 2a 00 03 04 00 00 00 00 1c 1e 27 1c 2a 1e 72 20
89 0d 2b 00 04 04 00 00 00 00 37 0d 1a 37 1f 32 0b 62
</pre></td></tr></table>
<p>The track numbers are stored in the track number byte of the packs. The
two time points are stored in bytes 6 to 11 of the payload. Byte 0 of the
payload seems to be a sequential counter. Is byte 1 always 4? Byte 2 to 5
always 0?
</p>
<hr size="6">
<a name="Block-Size-Information-Type-_00280x8f_0029"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#TOC-Pack-Types" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="#Higher_002dLevel-Encoding" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Encoding-and-Decoding-CD-Text" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="#Encoding-and-Decoding-CD-Text" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="#Higher_002dLevel-Encoding" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Block-Size-Information-Type-_00280x8f_0029-1"></a>
<h2 class="section">1.6 Block Size Information Type (<kbd>0x8f</kbd>)</h2>
<p>Pack type <kbd>0x8f</kbd> summarizes the whole list of text packs of a
block. So there is one group of three <kbd>0x8f</kbd> packs per block.
Nevertheless, each <kbd>0x8f</kbd> group indicates the highest sequence
number and the language code of all blocks.
</p>
<p>The payload bytes of three <kbd>0x8f</kbd> packs form a 36-byte record.
The track number bytes of the three packs have the values 0, 1, 2.
</p>
<p>For the format of this pack type, see <a href="#table_003ablock_002dpack">table:block-pack</a>.
</p>
<div class="float"><a name="table_003ablock_002dpack"></a>
<table><tr><td> </td><td><pre class="smallexample"> Byte :
0 : Character code for pack types 0x80 to 0x85:
0x00 = ISO-8859-1
0x01 = 7 bit ASCII
0x80 = MS-JIS (japanese Kanji, double byte characters)
1 : Number of first track
2 : Number of last track
3 : value 3 means CD-TEXT is copyrighted,
value 0 means CD-TEXT is not copyrighted
4 - 19 : Pack count of the various types 0x80 to 0x8f.
Byte number N tells the count of packs of type 0x80 + (N - 4).
I.e. the first byte in this field of 16 counts packs of type 0x80.
20 - 27 : Highest sequence byte number of blocks 0 to 7.
28 - 36 : Language code for blocks 0 to 7 (tech3264.pdf appendix 3)
</pre></td></tr></table>
</div><p><strong>Table 1.3: Block Size Information Type
</strong>
</p>
<p>Table <a href="#table_003alanguages">table:languages</a> specifies the language codes that are
referred to in bytes 28-38 of <a href="#table_003ablock_002dpack">table:block-pack</a>.
</p>
<div class="float"><a name="table_003alanguages"></a>
<table><tr><td> </td><td><pre class="smallexample">0x00: Unknown 0x50: Sranan Tongo
0x01: Albanian 0x51: Somali
0x02: Breton 0x52: Sinhalese
0x03: Catalan 0x53: Shona
0x04: Croatian 0x54: Serbo-croat
0x05: Welsh 0x55: Ruthenian
0x06: Czech 0x56: Russian
0x07: Danish 0x57: Quechua
0x08: German 0x58: Pushtu
0x09: English 0x59: Punjabi
0x0a: Spanish 0x5a: Persian
0x0b: Esperanto 0x5b: Papamiento
0x0c: Estonian 0x5c: Oriya
0x0d: Basque 0x5d: Nepali
0x0e: Faroese 0x5e: Ndebele
0x0f: French 0x5f: Marathi
0x10: Frisian 0x60: Moldavian
0x11: Irish 0x61: Malaysian
0x12: Gaelic 0x62: Malagasay
0x13: Galician 0x63: Macedonian
0x14: Iceland 0x64: Laotian
0x15: Italian 0x65: Korean
0x16: Lappish 0x66: Khmer
0x17: Latin 0x67: Kazakh
0x18: Latvian 0x68: Kannada
0x19: Luxembourgian 0x69: Japanese
0x1a: Lithuanian 0x6a: Indonesian
0x1b: Hungarian 0x6b: Hindi
0x1c: Maltese 0x6c: Hebrew
0x1d: Dutch 0x6d: Hausa
0x1e: Norwegian 0x6e: Gurani
0x1f: Occitan 0x6f: Gujurati
0x20: Polish 0x70: Greek
0x21: Portuguese 0x71: Georgian
0x22: Romanian 0x72: Fulani
0x23: Romanish 0x73: Dari
0x24: Serbian 0x74: Churash
0x25: Slovak 0x75: Chinese
0x26: Slovenian 0x76: Burmese
0x27: Finnish 0x77: Bulgarian
0x28: Swedish 0x78: Bengali
0x29: Turkish 0x79: Bielorussian
0x2a: Flemish 0x7a: Bambora
0x2b: Wallon 0x7b: Azerbaijani
0x45: Zulu 0x7c: Assamese
0x46: Vietnamese 0x7d: Armenian
0x47: Uzbek 0x7e: Arabic
0x48: Urdu 0x7f: Amharic
0x49: Ukrainian
0x4a: Thai
0x4b: Telugu
0x4c: Tatar
0x4d: Tamil
0x4e: Tadzhik
0x4f: Swahili
</pre></td></tr></table>
</div><p><strong>Table 1.4: Language Codes
</strong>
</p>
<p>Note: Not all of the language codes in <a href="#table_003alanguages">table:languages</a> have
ever been seen with CD Text.
</p>
<p>Using the preceding information, we can work out the following example.
</p><table><tr><td> </td><td><pre class="smallexample"> 42 : 8f 00 2a 00 01 01 03 00 06 05 04 05 07 06 01 02 48 65
43 : 8f 01 2b 00 00 00 00 00 00 00 06 03 2c 00 00 00 c0 20
44 : 8f 02 2c 00 00 00 00 00 09 00 00 00 00 00 00 00 11 45
</pre></td></tr></table>
<p>decodes to:
</p><table><tr><td> </td><td><pre class="smallexample">Byte :Value Meaning
0 : 01 = ASCII 7-bit
1 : 01 = first track is 1
2 : 03 = last track is 3
3 : 00 = copyright (0 = public domain, 3 = copyrighted ?)
4 : 06 = 6 packs of type 0x80
5 : 05 = 5 packs of type 0x81
6 : 04 = 4 packs of type 0x82
7 : 05 = 5 packs of type 0x83
8 : 07 = 7 packs of type 0x84
9 : 06 = 6 packs of type 0x85
10 : 01 = 1 pack of type 0x86
11 : 02 = 2 packs of type 0x87
12 : 00 = 0 packs of type 0x88
13 : 00 = 0 packs of type 0x89
14 : 00 00 00 00 = 0 packs of types 0x8a to 0x8d
18 : 06 = 6 packs of type 0x8e
19 : 03 = 3 packs of type 0x8f
20 : 2c = last sequence for block 0
This matches the sequence number of the last text pack (0x2c = 44)
21 : 00 00 00 00 00 00 00 = last sequence numbers for block 1..7 (none)
28 : 09 = language code for block 0: English
29 : 00 00 00 00 00 00 00 = language codes for block 1..7 (none)
</pre></td></tr></table>
<hr size="6">
<a name="Higher_002dLevel-Encoding"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Block-Size-Information-Type-_00280x8f_0029" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="#Sony-Text-File-Format-_0028Input-Sheet-Version-0_002e7T_0029" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Encoding-and-Decoding-CD-Text" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="#Top" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="#Acknowledgement" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Higher_002dLevel-Encoding-1"></a>
<h1 class="chapter">2. Higher-Level Encoding</h1>
<p>This part gives examples of two ways to input CD Text for burning.
</p>
<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top"><a href="#Sony-Text-File-Format-_0028Input-Sheet-Version-0_002e7T_0029">2.1 Sony Text File Format (Input Sheet Version 0.7T)</a></td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top"><a href="#CDRWIN-Cue-Sheet-with-CD-Text">2.2 CDRWIN Cue Sheet with CD Text</a></td><td> </td><td align="left" valign="top">
</td></tr>
</table>
<hr size="6">
<a name="Sony-Text-File-Format-_0028Input-Sheet-Version-0_002e7T_0029"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Higher_002dLevel-Encoding" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="#CDRWIN-Cue-Sheet-with-CD-Text" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Higher_002dLevel-Encoding" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="#Higher_002dLevel-Encoding" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="#Acknowledgement" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Sony-Text-File-Format-_0028Input-Sheet-Version-0_002e7T_0029-1"></a>
<h2 class="section">2.1 Sony Text File Format (Input Sheet Version 0.7T)</h2>
<p>This text file format provides comprehensive means to define the text
attributes of sessions and tracks for a single block. More than one
such file has to be read to form an attribute set with multiple blocks.
</p>
<p>The information is given by text lines of the following form:
purpose specifier [whitespace] = [whitespace] content text
[whitespace] is zero or more ASCII 32 (space) or ASCII 9 (tab) characters.
The purpose specifier tells the meaning of the content text.
Empty content text does not cause a CD Text attribute to be attached.
</p>
<p>The following purpose specifiers apply to the session as a whole:
</p>
<table><tr><td> </td><td><pre class="smallexample"> Specifier = Meaning
Text Code = Character code for pack type 0x8f
"ASCII", "8859"
Language Code = One of the language names for pack type 0x8f
Album Title = Content of pack type 0x80
Artist Name = Content of pack type 0x81
Songwriter = Content of pack type 0x82
Composer = Content of pack type 0x83
Arranger = Content of pack type 0x84
Album Message = Content of pack type 0x85
Catalog Number = Content of pack type 0x86
Genre Code = One of the genre names for pack type 0x87
Genre Information = Cleartext part of pack type 0x87
Closed Information = Content of pack type 0x8d
UPC / EAN = Content of pack type 0x8e
Text Data Copy Protection = Copyright value for pack type 0x8f
"ON" = 0x03, "OFF" = 0x00
First Track Number = The lowest track number used in the file
Last Track Number = The highest track number used in the file
</pre></td></tr></table>
<p>The following purpose specifiers apply to particular tracks:
</p><table><tr><td> </td><td><pre class="smallexample"> Track NN Title = Content of pack type 0x80
Track NN Artist = Content of pack type 0x81
Track NN Songwriter = Content of pack type 0x82
Track NN Composer = Content of pack type 0x83
Track NN Arranger = Content of pack type 0x84
Track NN Message = Content of pack type 0x85
ISRC NN = Content of pack type 0x8e
</pre></td></tr></table>
<p>The following purpose specifiers have no effect on CD Text:
</p><table><tr><td> </td><td><pre class="smallexample"> Remarks = Comments with no influence on CD Text
Disc Information NN = Supplementary information for use by record companies.
ISO-8859-1 encoded. NN ranges from 01 to 04.
Input Sheet Version = "0.7T"
</pre></td></tr></table>
<p>An example <code>cdrskin</code> run with three tracks:
</p>
<table><tr><td> </td><td><pre class="smallexample"> $ cdrskin dev=/dev/sr0 -v input_sheet_v07t=NIGHTCATS.TXT \
-audio track_source_1 track_source_2 track_source_3
</pre></td></tr></table>
<p>The contexts of file ‘<tt>NIGHTCATS.TXT</tt>’ used above is:
</p><table><tr><td> </td><td><pre class="smallexample">Input Sheet Version = 0.7T
Text Code = 8859
Language Code = English
Album Title = Joyful Nights
Artist Name = United Cat Orchestra
Songwriter = Various Songwriters
Composer = Various Composers
Arranger = Tom Cat
Album Message = For all our fans
Catalog Number = 1234567890
Genre Code = Classical
Genre Information = Feline classic music
Closed Information = This is not to be shown by CD players
UPC / EAN = 1234567890123
Text Data Copy Protection = OFF
First Track Number = 1
Last Track Number = 3
Track 01 Title = Song of Joy
Track 01 Artist = Felix and The Purrs
Track 01 Songwriter = Friedrich Schiller
Track 01 Composer = Ludwig van Beethoven
Track 01 Arranger = Tom Cat
Track 01 Message = Fritz and Louie once were punks
ISRC 01 = XYBLG1101234
Track 02 Title = Humpty Dumpty
Track 02 Artist = Catwalk Beauties
Track 02 Songwriter = Mother Goose
Track 02 Composer = unknown
Track 02 Arranger = Tom Cat
Track 02 Message = Pluck the goose
ISRC 02 = XYBLG1100005
Track 03 Title = Mee Owwww
Track 03 Artist = Mia Kitten
Track 03 Songwriter = Mia Kitten
Track 03 Composer = Mia Kitten
Track 03 Arranger = Mia Kitten
Track 03 Message =
ISRC 03 = XYBLG1100006
</pre></td></tr></table>
<hr size="6">
<a name="CDRWIN-Cue-Sheet-with-CD-Text"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Sony-Text-File-Format-_0028Input-Sheet-Version-0_002e7T_0029" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="#Acknowledgement" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Higher_002dLevel-Encoding" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="#Higher_002dLevel-Encoding" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="#Acknowledgement" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="CDRWIN-Cue-Sheet-with-CD-Text-1"></a>
<h2 class="section">2.2 CDRWIN Cue Sheet with CD Text</h2>
<p>A CDRWIN cue sheet file defines the track data source (<kbd>FILE</kbd>),
various text attributes (<kbd>CATALOG</kbd>, <kbd>TITLE</kbd>, <kbd>PERFORMER</kbd>,
<kbd>SONGWRITER</kbd>, <kbd>ISRC</kbd>), track block types (<kbd>TRACK</kbd>), track
start addresses (<kbd>INDEX</kbd>). The rules for CDRWIN cue sheet files are
described at <a href="http://digitalx.org/cue-sheet/syntax/">http://digitalx.org/cue-sheet/syntax/</a> [4].
</p>
<p>There are three more text attributes mentioned in the cdrecord manual
page for defining the corresponding CD Text attributes: <kbd>ARRANGER</kbd>,
<kbd>COMPOSER</kbd>, <kbd>MESSAGE</kbd>.
</p>
<p>An Example of a CDRWIN cue sheet file:
</p><table><tr><td> </td><td><pre class="smallexample">CATALOG 1234567890123
FILE "audiodata.bin" BINARY
TITLE "Joyful Nights"
TRACK 01 AUDIO
FLAGS DCP
TITLE "Song of Joy"
PERFORMER "Felix and The Purrs"
SONGWRITER "Friedrich Schiller"
ISRC XYBLG1101234
INDEX 01 00:00:00
TRACK 02 AUDIO
FLAGS DCP
TITLE "Humpty Dumpty"
PERFORMER "Catwalk Beauties"
SONGWRITER "Mother Goose"
ISRC XYBLG1100005
INDEX 01 08:20:12
TRACK 03 AUDIO
FLAGS DCP
TITLE "Mee Owwww"
PERFORMER "Mia Kitten"
SONGWRITER "Mia Kitten"
ISRC XYBLG1100006
INDEX 01 13:20:33
</pre></td></tr></table>
<hr size="6">
<a name="Acknowledgement"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#CDRWIN-Cue-Sheet-with-CD-Text" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="#List-of-Tables" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Higher_002dLevel-Encoding" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="#Top" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="#List-of-Tables" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="Acknowledgement-1"></a>
<h1 class="unnumbered">Acknowledgement</h1>
<p>Thanks to Leon Merten Lohse.
</p>
<hr size="6">
<a name="List-of-Tables"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Acknowledgement" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[<a href="#References" title="Next section in reading order"> > </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Acknowledgement" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="#Top" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="#References" title="Next chapter"> >> </a>]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="List-of-Tables-1"></a>
<h1 class="unnumbered">List of Tables</h1>
<dl class="listoffloats">
<dt><a href="#table_003acategories">Table 1.1</a></dt><dd><p>CD Text Categories
</p></dd>
<dt><a href="#table_003agenres">Table 1.2</a></dt><dd><p>Genre Categories
</p></dd>
<dt><a href="#table_003ablock_002dpack">Table 1.3</a></dt><dd><p>Block Size Information Type
</p></dd>
<dt><a href="#table_003alanguages">Table 1.4</a></dt><dd><p>Language Codes
</p></dd>
</dl>
<hr size="6">
<a name="References"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#List-of-Tables" title="Previous section in reading order"> < </a>]</td>
<td valign="middle" align="left">[ > ]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#List-of-Tables" title="Beginning of this chapter or previous chapter"> << </a>]</td>
<td valign="middle" align="left">[<a href="#Top" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[ >> ]</td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left"> </td>
<td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="References-1"></a>
<h1 class="unnumbered">References</h1>
<ol>
<li> Correspondence with Leon Merten Lohse
in <a href="mailto:libcdio-devel@gnu.org">libcdio-devel@gnu.org</a>, December 2011. <br> Mail archives at
<a href="http://lists.gnu.org/archive/html/libcdio-devel/2011-12/index.html">http://lists.gnu.org/archive/html/libcdio-devel/2011-12/index.html</a>
</li><li> <em>SCSI Multimedia Commands — 3 (MMC-3)</em>,<a name="mmc3r10g_002epdf"></a> Revision 10g, November 12. 2011.<br>
Google for ‘<tt>mmc3r10g.pdf</tt>’
See especially Section 5.23 (READ TOC/PMA/ATIP Command),
see Table 237 (TOC Track Descriptor Format, Q
Sub-channel), Annex J (CD Text format in the Lead-in Area) and
Sections 4.2.5.3 (Mode-5 Q).
</li><li> “Materials describing the procedure of authoring and mastering for creating CD TEXT disks on equipment developed by Sony HAV Company”,<a name="cdtext_002ezip"></a><br>
‘<tt>http://www.sonydadc.com/file/cdtext.zip</tt>’ which was previously found on Sony’s web site circa 2007. You may be able to get this from the “Wayback Archive”, such as <a href="http://web.archive.org/web/20070204035327/http://www.sonydadc.com/file/cdtext.zip">http://web.archive.org/web/20070204035327/http://www.sonydadc.com/file/cdtext.zip</a><br>
</li><li> Cue-Sheet Syntax
<a href="http://digitalx.org/cue-sheet/syntax">http://digitalx.org/cue-sheet/syntax</a>
</li><li> <em>libburnia</em> project <a href="http://libburnia-project.org">http://libburnia-project.org</a>
See ‘<tt>doc</tt>’ directory in that project.
</li><li> <em>libcdio</em> source code <a href="http://www.gnu.org/s/libcdio">http://www.gnu.org/s/libcdio</a>
</li><li> <em>cdrecord</em> source code <a href="ftp://ftp.berlios.de/pub/cdrecord/alpha">ftp://ftp.berlios.de/pub/cdrecord/alpha</a>
</li><li> <em>cdrecord</em> manual page.
<a href="http://cdrecord.berlios.de/private/man/cdrecord/cdrecord.1.html">http://cdrecord.berlios.de/private/man/cdrecord/cdrecord.1.html</a>
</li><li> <em>Specification of the EBU Subtitling data exchange format</em>,<br>
Appendix 3. February 1991
<a href="http://tech.ebu.ch/docs/tech/tech3264.pdf">http://tech.ebu.ch/docs/tech/tech3264.pdf</a> <br>
Contains CD Text Language codes shown in <a href="#table_003alanguages">table:languages</a>.
</li><li> Genre codes
<a href="http://helpdesk.audiofile-engineering.com/index.php?pg=kb.page&id=123">http://helpdesk.audiofile-engineering.com/index.php?pg=kb.page&id=123</a>
</li></ol>
<hr size="6">
<a name="SEC_Contents"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<h1>Table of Contents</h1>
<div class="contents">
<ul class="toc">
<li><a name="toc-Encoding-and-Decoding-CD-Text-1" href="#Encoding-and-Decoding-CD-Text">1. Encoding and Decoding CD Text</a>
<ul class="toc">
<li><a name="toc-Top_002dLevel-CD-Text-Categories-_0028Pack-Types_0029-1" href="#Top_002dLevel-CD-Text-Categories-_0028Pack-Types_0029">1.1 Top-Level CD Text Categories (Pack Types)</a></li>
<li><a name="toc-Pack-Contents-1" href="#Pack-Contents">1.2 Pack Contents</a></li>
<li><a name="toc-Text-Packs-_00280x80_002d_002d0x85_002c-0x8e_0029" href="#Text-Pack-Types">1.3 Text Packs (<kbd>0x80</kbd>–<kbd>0x85</kbd>, <kbd>0x8e</kbd>)</a></li>
<li><a name="toc-Miscellaneous-Pack-Types-_00280x86_002c-0x87_002c-0x8d_0029" href="#Misc-Pack-Types">1.4 Miscellaneous Pack Types (<kbd>0x86</kbd>, <kbd>0x87</kbd>, <kbd>0x8d</kbd>)</a></li>
<li><a name="toc-TOC-Pack-Types-_00280x88_002c-0x89_0029" href="#TOC-Pack-Types">1.5 TOC Pack Types (<kbd>0x88</kbd>, <kbd>0x89</kbd>)</a></li>
<li><a name="toc-Block-Size-Information-Type-_00280x8f_0029-1" href="#Block-Size-Information-Type-_00280x8f_0029">1.6 Block Size Information Type (<kbd>0x8f</kbd>)</a></li>
</ul></li>