Fix EN typos

- Corrections for en_US language.
- Some whitespace sanitation.

git-svn-id: svn://kolibrios.org@10064 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Andrew 2024-05-29 21:37:05 +00:00
parent bb2607b7d8
commit a53bea545e
10 changed files with 1311 additions and 1313 deletions

View File

@ -34,8 +34,8 @@ INFTY equ 1000000000
moveorder dd 1,7,2,6,3,5,4 moveorder dd 1,7,2,6,3,5,4
; table used for static evaluation. ; table used for static evaluation.
; this table is taken from 4st attack: it is ways better ; this table is taken from 4st attack: it is much better
; than the table i used before =) ; than the table I used before =)
evaltable: dd 0, 0, 0, 0, 0, 0, 0, 0, 0 evaltable: dd 0, 0, 0, 0, 0, 0, 0, 0, 0
dd 0, 3, 4, 5, 7, 5, 4, 3, 0 dd 0, 3, 4, 5, 7, 5, 4, 3, 0
dd 0, 4, 6, 8,10, 8, 6, 4, 0 dd 0, 4, 6, 8,10, 8, 6, 4, 0
@ -100,7 +100,7 @@ aiGetMove:
push dword -INFTY ; alpha push dword -INFTY ; alpha
push dword INFTY ; beta push dword INFTY ; beta
call alphabeta call alphabeta
neg eax ; damn, how could i forget this ??? neg eax ; How could I forget this ???
mov ebx,eax ; save result for later mov ebx,eax ; save result for later
pop ecx ; restore loop counter pop ecx ; restore loop counter
pop eax ; restore move # pop eax ; restore move #

View File

@ -245,7 +245,7 @@ else
WG_help mstr \ WG_help mstr \
'Your aim is to drag the wriggley worms by head or',\ 'Your aim is to drag the wriggley worms by head or',\
'tail until each worm covers the squares of its',\ 'tail until each worm covers the squares of its',\
'own colour leaving only white squares exposed.',\ 'own color leaving only white squares exposed.',\
'Worms cannot cross or overlap.','',\ 'Worms cannot cross or overlap.','',\
'http://www.clickmazes.com' 'http://www.clickmazes.com'
end if end if

View File

@ -617,7 +617,7 @@ void List::BoardToBoard(int fromwhere, int towhere, char s_color, char s_suit, i
while(cardtraverse){ while(cardtraverse){
if(cardtraverse->isup)// Dont move cards if the entered card is down if(cardtraverse->isup)// Don't move cards if the entered card is down
if(cardtraverse->color == s_color && cardtraverse->suit == s_suit && cardtraverse->value == s_value){ if(cardtraverse->color == s_color && cardtraverse->suit == s_suit && cardtraverse->value == s_value){
willbemoved = cardtraverse; willbemoved = cardtraverse;
break; break;
@ -757,4 +757,3 @@ void List::close(){//Deletes all linked lists and linkedlists's all nodes
fclose(fptr);//Closing reading txt file fclose(fptr);//Closing reading txt file
} }

View File

@ -12,7 +12,7 @@
;; Calc 1.2 ;; Calc 1.2
;; 1) added some useful functions, such as arcsin, arccos, arctg, 1/x, x^2 ;; 1) added some useful functions, such as arcsin, arccos, arctg, 1/x, x^2
;; Calc 1.31 ;; Calc 1.31
;; 1) optimised program ;; 1) optimized program
;; 2) new type of window (you need kernel 114 revision or higher) ;; 2) new type of window (you need kernel 114 revision or higher)
;; Calc 1.32 ;; Calc 1.32
;; 1) fixed arccos ;; 1) fixed arccos
@ -450,7 +450,7 @@ new_entry:
ret ret
ftoa: ; fpu st0 -> [integer],[decimal] ftoa: ; fpu st0 -> [integer],[decimal]
pusha pusha
fst [tmp2] fst [tmp2]
fstcw [controlWord] ; set truncate integer mode fstcw [controlWord] ; set truncate integer mode
@ -559,7 +559,7 @@ atof:
.error: .error:
mov bh, 1 ; Set error code. mov bh, 1 ; Set error code.
; fstp st0 ; Pop top of fpu stack. ; fstp st0 ; Pop top of fpu stack.
.exit: .exit:
pop di pop di

View File

@ -240,7 +240,7 @@ print "write failed"
clipboard_read: clipboard_read:
; esi -> CLIP_buffer, ax = format id ; esi -> CLIP_buffer, ax = format id
; edx - ¬ áª  ᮡë⨩ ¯® 㬮«ç ­¨î ; edx - маска событий по умолчанию
; result: eax = 1 - success, 0 - general failure, ; result: eax = 1 - success, 0 - general failure,
; -1 - buffer too small ; -1 - buffer too small
; edx = size of data ; edx = size of data
@ -291,7 +291,7 @@ pregs
or eax, eax or eax, eax
jz .err jz .err
;print "send fuck" ;print "send DEBUG!"
mov edx, ebp mov edx, ebp
mov esi, edi mov esi, edi
@ -304,8 +304,7 @@ print "read get data"
mov edx, ebx mov edx, ebx
mov eax, 1 mov eax, 1
print "read ok" print "read ok"
jmp .exit ; i'm an idiot. Never will I code at night again jmp .exit.
; i put jz instead of jmp.
.size: .size:
print "buffer small" print "buffer small"
@ -356,4 +355,3 @@ clipboard_delete:
.msg_del dw 0 .msg_del dw 0
dw 1 dw 1
dd 0 dd 0

View File

@ -115,7 +115,7 @@ no_lit:
button_4: button_4:
cmp ah,4 ; was it button 4 - LOAD cmp ah,4 ; was it button 4 - LOAD
jne button_5 ; no then try button 5 jne button_5 ; no then try button 5
mov byte [editstate],0 ; dont want to be in edit mode mov byte [editstate],0 ; don't want to be in edit mode
call draw_filename ; update filename call draw_filename ; update filename
call load_file ; load the file call load_file ; load the file
call draw_icon ; update icon screen call draw_icon ; update icon screen
@ -124,16 +124,16 @@ no_lit:
button_5: button_5:
cmp ah,5 ; was it button 5 - SAVE cmp ah,5 ; was it button 5 - SAVE
jne button_6 ; no then try button 6 jne button_6 ; no then try button 6
mov byte [editstate],0 ; dont want to be in edit mode mov byte [editstate],0 ; don't want to be in edit mode
call draw_filename ; update filename call draw_filename ; update filename
call save_file ; save the file call save_file ; save the file
jmp check_mouse ; start loop again jmp check_mouse ; start loop again
button_6: button_6:
cmp ah,6 ; was it button 6 - CLEAR ICON cmp ah,6 ; was it button 6 - CLEAR ICON
jne button_7 ; no then try button 7 jne button_7 ; no then try button 7
mov byte [editstate],0 ; dont want to be in edit mode mov byte [editstate],0 ; don't want to be in edit mode
call draw_filename ; update filename call draw_filename ; update filename
call clear_graph_icon ; clear the icon and edit screens call clear_graph_icon ; clear the icon and edit screens
jmp check_mouse jmp check_mouse
button_7: button_7:
@ -400,7 +400,7 @@ next_b_w_inner:
jne next_b_w_outer jne next_b_w_outer
cmp [first_run],0 ; is it the first window draw cmp [first_run],0 ; is it the first window draw
jne dont_load ; no then dont reload the file jne dont_load ; no then don't reload the file
call load_file ; load initial file call load_file ; load initial file
mov [first_run],1 ; first window draw done mov [first_run],1 ; first window draw done
dont_load: dont_load:

View File

@ -977,7 +977,7 @@ text:
db ' ' db ' '
db ' ' db ' '
db ' START/STOP << >> REPEAT:OFF ' db ' START/STOP << >> REPEAT:OFF '
db 'x <- END MARKER, DONT DELETE ' db 'x <- END MARKER, DON'T DELETE '
now_playing: now_playing:
db ' ' db ' '
db 'xx ' db 'xx '

View File

@ -985,7 +985,7 @@ void process_key()
buffer[i][j] = NULL; buffer[i][j] = NULL;
} }
} }
if (key_ascii == 24) ///////WTF???? if (key_ascii == 24) ///////Unexpected!????
calculate_values(); calculate_values();
draw_grid(); draw_grid();
break; break;

View File

@ -27,6 +27,7 @@
// warnings. See // warnings. See
// https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html // https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html
// for more info. // for more info.
#define _DEFAULT_SOURCE #define _DEFAULT_SOURCE
#define _BSD_SOURCE #define _BSD_SOURCE
#define _GNU_SOURCE #define _GNU_SOURCE
@ -77,7 +78,7 @@ void notify(char *text);
/*** Data section ***/ /*** Data section ***/
// Kolibri defaults // KolibriOS defaults
int con_def_wnd_width = 80; int con_def_wnd_width = 80;
int con_def_wnd_height = 25; int con_def_wnd_height = 25;
/// winFile support /// winFile support
@ -137,7 +138,7 @@ struct editor_config {
// Having a dynamic buffer will allow us to write only one // Having a dynamic buffer will allow us to write only one
// time once the screen is refreshing, instead of doing // time once the screen is refreshing, instead of doing
// a lot of write's. // a lot of writes.
struct a_buf { struct a_buf {
char* buf; char* buf;
int len; int len;
@ -465,7 +466,7 @@ void enableRawMode() {
/// die("Failed to set raw mode"); /// die("Failed to set raw mode");
} }
/// by Siemargl rewritten, still Ctrl+ combination works only in english locale, so need analyze scancode /// by Siemargl rewritten, still Ctrl+ combination works only in English locale, so need analyze scancode
int editorReadKey() { int editorReadKey() {
int key = con_getch2(); int key = con_getch2();
if (key == 0) if (key == 0)
@ -844,7 +845,7 @@ void editorSelectSyntaxHighlight() {
int editorRowCursorXToRenderX(editor_row* row, int cursor_x) { int editorRowCursorXToRenderX(editor_row* row, int cursor_x) {
int render_x = 0; int render_x = 0;
int j; int j;
// For each character, if its a tab we use rx % TTE_TAB_STOP // For each character, if it's a tab we use rx % TTE_TAB_STOP
// to find out how many columns we are to the right of the last // to find out how many columns we are to the right of the last
// tab stop, and then subtract that from TTE_TAB_STOP - 1 to // tab stop, and then subtract that from TTE_TAB_STOP - 1 to
// find out how many columns we are to the left of the next tab // find out how many columns we are to the left of the next tab
@ -1187,7 +1188,7 @@ void editorSave() {
} }
free(buf); free(buf);
editorSetStatusMessage("Cant's save file. Error occurred: %s", strerror(errno)); editorSetStatusMessage("Can't save file. Error occurred: %s", strerror(errno));
} }
/*** Search section ***/ /*** Search section ***/
@ -1361,11 +1362,11 @@ void editorDrawStatusBar(struct a_buf* ab) {
void editorDrawMessageBar(struct a_buf *ab) { void editorDrawMessageBar(struct a_buf *ab) {
// Clearing the message bar. // Clearing the message bar.
/// abufAppend(ab, "\x1b[K", 3); /// not work in Kolibri /// abufAppend(ab, "\x1b[K", 3); /// not work in KolibriOS
int msg_len = strlen(ec.status_msg); int msg_len = strlen(ec.status_msg);
if (msg_len > ec.screen_cols) if (msg_len > ec.screen_cols)
msg_len = ec.screen_cols; msg_len = ec.screen_cols;
// We only show the message if its less than 5 secons old, but // We only show the message if it's less than 5 seconds old, but
// remember the screen is only being refreshed after each keypress. // remember the screen is only being refreshed after each keypress.
if (msg_len && time(NULL) - ec.status_msg_time < 5) if (msg_len && time(NULL) - ec.status_msg_time < 5)
abufAppend(ab, ec.status_msg, msg_len); abufAppend(ab, ec.status_msg, msg_len);

View File

@ -516,7 +516,7 @@ no_ummio_here:
.find: .find:
mov edx, [edx - 4] mov edx, [edx - 4]
mcall SF_DRAW_TEXT,, 0x80000000 ; lets print the vendor Name mcall SF_DRAW_TEXT,, 0x80000000 ; let's print the vendor Name
mov [store_text_size],42 mov [store_text_size],42
call store_text call store_text