[Audacity-nyquist] Nyquist UTF-8 ToolBox, version 0.1
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: edgar <edg...@we...> - 2010-10-30 16:58:11
|
Hi all on the Audacity Nyquist list, ;;; Nyquist UTF-8 ToolBox ;; ;; Version 0.1 - October 30, 2010 - edgar-rft[at]web.de ;; ;; This library provides some very simple functions to manipulate ;; ASCII and UTF-8 encoded strings via Nyquist/XLISP list functions. ;; ;; UTF-8-BYTE-P - tests if a XLISP character is a valid UTF-8 byte ;; UTF-8-BYTES - returns the number of bytes of an UTF-8 character ;; ;; UTF-8-STRING-TO-LIST - UTF-8 string -> list of "string-characters" ;; UTF-8-LIST-TO-STRING - list of "string-characters" -> XLISP string ;; ;; In the list of "string-characters" every ASCII or UTF-8 character ;; from 1-byte to 4-byte is represented by its own list element: ;; ;; (utf-8-string-to-list "hällö") => ("h" "\303\244" "l" "l" "\303\266") ;; h ä l l ö ;; ;; The list can be manipulated by standard Nyquist list functions and ;; then re-converted into a string by UTF-8-LIST-TO-STRING. ;; ;; The UTF-8 toolbox may help to write custom UTF-8 string access ;; functions like UTF-8-SUBSEQ or UTF-8-STRING-SEARCH with no need ;; to care about the underlying low-level octal sequences. The rest of the text you can read in the zip-file in the attachment... Note that albeit I was sitting now for nearly a week on this code every day for several hours I do not think that it already belongs to the masterpieces of computer science. If you find bugs or something else do not be afraid to complain. :) Thanks, - edgar |