diff --git a/styles.go b/styles.go index 501061e..6fdc36d 100644 --- a/styles.go +++ b/styles.go @@ -527,6 +527,214 @@ var currencyNumFmt = map[int]string{ 424: "[$AZN]\\ #,##0.00", 425: "[$BAM]\\ #,##0.00", 426: "[$BBD]\\ #,##0.00", + 427: "[$BDT]\\ #,##0.00", + 428: "[$BEF]\\ #,##0.00", + 429: "[$BGL]\\ #,##0.00", + 430: "[$BGN]\\ #,##0.00", + 431: "[$BHD]\\ #,##0.00", + 432: "[$BIF]\\ #,##0.00", + 433: "[$BMD]\\ #,##0.00", + 434: "[$BND]\\ #,##0.00", + 435: "[$BOB]\\ #,##0.00", + 436: "[$BOV]\\ #,##0.00", + 437: "[$BRL]\\ #,##0.00", + 438: "[$BSD]\\ #,##0.00", + 439: "[$BTN]\\ #,##0.00", + 440: "[$BWP]\\ #,##0.00", + 441: "[$BYR]\\ #,##0.00", + 442: "[$BZD]\\ #,##0.00", + 443: "[$CAD]\\ #,##0.00", + 444: "[$CDF]\\ #,##0.00", + 445: "[$CHE]\\ #,##0.00", + 446: "[$CHF]\\ #,##0.00", + 447: "[$CHW]\\ #,##0.00", + 448: "[$CLF]\\ #,##0.00", + 449: "[$CLP]\\ #,##0.00", + 450: "[$CNY]\\ #,##0.00", + 451: "[$COP]\\ #,##0.00", + 452: "[$COU]\\ #,##0.00", + 453: "[$CRC]\\ #,##0.00", + 454: "[$CSD]\\ #,##0.00", + 455: "[$CUC]\\ #,##0.00", + 456: "[$CVE]\\ #,##0.00", + 457: "[$CYP]\\ #,##0.00", + 458: "[$CZK]\\ #,##0.00", + 459: "[$DEM]\\ #,##0.00", + 460: "[$DJF]\\ #,##0.00", + 461: "[$DKK]\\ #,##0.00", + 462: "[$DOP]\\ #,##0.00", + 463: "[$DZD]\\ #,##0.00", + 464: "[$ECS]\\ #,##0.00", + 465: "[$ECV]\\ #,##0.00", + 466: "[$EEK]\\ #,##0.00", + 467: "[$EGP]\\ #,##0.00", + 468: "[$ERN]\\ #,##0.00", + 469: "[$ESP]\\ #,##0.00", + 470: "[$ETB]\\ #,##0.00", + 471: "[$EUR]\\ #,##0.00", + 472: "[$FIM]\\ #,##0.00", + 473: "[$FJD]\\ #,##0.00", + 474: "[$FKP]\\ #,##0.00", + 475: "[$FRF]\\ #,##0.00", + 476: "[$GBP]\\ #,##0.00", + 477: "[$GEL]\\ #,##0.00", + 478: "[$GHC]\\ #,##0.00", + 479: "[$GHS]\\ #,##0.00", + 480: "[$GIP]\\ #,##0.00", + 481: "[$GMD]\\ #,##0.00", + 482: "[$GNF]\\ #,##0.00", + 483: "[$GRD]\\ #,##0.00", + 484: "[$GTQ]\\ #,##0.00", + 485: "[$GYD]\\ #,##0.00", + 486: "[$HKD]\\ #,##0.00", + 487: "[$HNL]\\ #,##0.00", + 488: "[$HRK]\\ #,##0.00", + 489: "[$HTG]\\ #,##0.00", + 490: "[$HUF]\\ #,##0.00", + 491: "[$IDR]\\ #,##0.00", + 492: "[$IEP]\\ #,##0.00", + 493: "[$ILS]\\ #,##0.00", + 494: "[$INR]\\ #,##0.00", + 495: "[$IQD]\\ #,##0.00", + 496: "[$IRR]\\ #,##0.00", + 497: "[$ISK]\\ #,##0.00", + 498: "[$ITL]\\ #,##0.00", + 499: "[$JMD]\\ #,##0.00", + 500: "[$JOD]\\ #,##0.00", + 501: "[$JPY]\\ #,##0.00", + 502: "[$KAF]\\ #,##0.00", + 503: "[$KES]\\ #,##0.00", + 504: "[$KGS]\\ #,##0.00", + 505: "[$KHR]\\ #,##0.00", + 506: "[$KMF]\\ #,##0.00", + 507: "[$KPW]\\ #,##0.00", + 508: "[$KRW]\\ #,##0.00", + 509: "[$KWD]\\ #,##0.00", + 510: "[$KYD]\\ #,##0.00", + 511: "[$KZT]\\ #,##0.00", + 512: "[$LAK]\\ #,##0.00", + 513: "[$LBP]\\ #,##0.00", + 514: "[$LKR]\\ #,##0.00", + 515: "[$LRD]\\ #,##0.00", + 516: "[$LSL]\\ #,##0.00", + 517: "[$LTL]\\ #,##0.00", + 518: "[$LUF]\\ #,##0.00", + 519: "[$LVL]\\ #,##0.00", + 520: "[$LYD]\\ #,##0.00", + 521: "[$MAD]\\ #,##0.00", + 522: "[$MDL]\\ #,##0.00", + 523: "[$MGA]\\ #,##0.00", + 524: "[$MGF]\\ #,##0.00", + 525: "[$MKD]\\ #,##0.00", + 526: "[$MMK]\\ #,##0.00", + 527: "[$MNT]\\ #,##0.00", + 528: "[$MOP]\\ #,##0.00", + 529: "[$MRO]\\ #,##0.00", + 530: "[$MTL]\\ #,##0.00", + 531: "[$MUR]\\ #,##0.00", + 532: "[$MVR]\\ #,##0.00", + 533: "[$MWK]\\ #,##0.00", + 534: "[$MXN]\\ #,##0.00", + 535: "[$MXV]\\ #,##0.00", + 536: "[$MYR]\\ #,##0.00", + 537: "[$MZM]\\ #,##0.00", + 538: "[$MZN]\\ #,##0.00", + 539: "[$NAD]\\ #,##0.00", + 540: "[$NGN]\\ #,##0.00", + 541: "[$NIO]\\ #,##0.00", + 542: "[$NLG]\\ #,##0.00", + 543: "[$NOK]\\ #,##0.00", + 544: "[$NPR]\\ #,##0.00", + 545: "[$NTD]\\ #,##0.00", + 546: "[$NZD]\\ #,##0.00", + 547: "[$OMR]\\ #,##0.00", + 548: "[$PAB]\\ #,##0.00", + 549: "[$PEN]\\ #,##0.00", + 550: "[$PGK]\\ #,##0.00", + 551: "[$PHP]\\ #,##0.00", + 552: "[$PKR]\\ #,##0.00", + 553: "[$PLN]\\ #,##0.00", + 554: "[$PTE]\\ #,##0.00", + 555: "[$PYG]\\ #,##0.00", + 556: "[$QAR]\\ #,##0.00", + 557: "[$ROL]\\ #,##0.00", + 558: "[$RON]\\ #,##0.00", + 559: "[$RSD]\\ #,##0.00", + 560: "[$RUB]\\ #,##0.00", + 561: "[$RUR]\\ #,##0.00", + 562: "[$RWF]\\ #,##0.00", + 563: "[$SAR]\\ #,##0.00", + 564: "[$SBD]\\ #,##0.00", + 565: "[$SCR]\\ #,##0.00", + 566: "[$SDD]\\ #,##0.00", + 567: "[$SDG]\\ #,##0.00", + 568: "[$SDP]\\ #,##0.00", + 569: "[$SEK]\\ #,##0.00", + 570: "[$SGD]\\ #,##0.00", + 571: "[$SHP]\\ #,##0.00", + 572: "[$SIT]\\ #,##0.00", + 573: "[$SKK]\\ #,##0.00", + 574: "[$SLL]\\ #,##0.00", + 575: "[$SOS]\\ #,##0.00", + 576: "[$SPL]\\ #,##0.00", + 577: "[$SRD]\\ #,##0.00", + 578: "[$SRG]\\ #,##0.00", + 579: "[$STD]\\ #,##0.00", + 580: "[$SVC]\\ #,##0.00", + 581: "[$SYP]\\ #,##0.00", + 582: "[$SZL]\\ #,##0.00", + 583: "[$THB]\\ #,##0.00", + 584: "[$TJR]\\ #,##0.00", + 585: "[$TJS]\\ #,##0.00", + 586: "[$TMM]\\ #,##0.00", + 587: "[$TMT]\\ #,##0.00", + 588: "[$TND]\\ #,##0.00", + 589: "[$TOP]\\ #,##0.00", + 590: "[$TRL]\\ #,##0.00", + 591: "[$TRY]\\ #,##0.00", + 592: "[$TTD]\\ #,##0.00", + 593: "[$TWD]\\ #,##0.00", + 594: "[$TZS]\\ #,##0.00", + 595: "[$UAH]\\ #,##0.00", + 596: "[$UGX]\\ #,##0.00", + 597: "[$USD]\\ #,##0.00", + 598: "[$USN]\\ #,##0.00", + 599: "[$USS]\\ #,##0.00", + 600: "[$UYI]\\ #,##0.00", + 601: "[$UYU]\\ #,##0.00", + 602: "[$UZS]\\ #,##0.00", + 603: "[$VEB]\\ #,##0.00", + 604: "[$VEF]\\ #,##0.00", + 605: "[$VND]\\ #,##0.00", + 606: "[$VUV]\\ #,##0.00", + 607: "[$WST]\\ #,##0.00", + 608: "[$XAF]\\ #,##0.00", + 609: "[$XAG]\\ #,##0.00", + 610: "[$XAU]\\ #,##0.00", + 611: "[$XB5]\\ #,##0.00", + 612: "[$XBA]\\ #,##0.00", + 613: "[$XBB]\\ #,##0.00", + 614: "[$XBC]\\ #,##0.00", + 615: "[$XBD]\\ #,##0.00", + 616: "[$XCD]\\ #,##0.00", + 617: "[$XDR]\\ #,##0.00", + 618: "[$XFO]\\ #,##0.00", + 619: "[$XFU]\\ #,##0.00", + 620: "[$XOF]\\ #,##0.00", + 621: "[$XPD]\\ #,##0.00", + 622: "[$XPF]\\ #,##0.00", + 623: "[$XPT]\\ #,##0.00", + 624: "[$XTS]\\ #,##0.00", + 625: "[$XXX]\\ #,##0.00", + 626: "[$YER]\\ #,##0.00", + 627: "[$YUM]\\ #,##0.00", + 628: "[$ZAR]\\ #,##0.00", + 629: "[$ZMK]\\ #,##0.00", + 630: "[$ZMW]\\ #,##0.00", + 631: "[$ZWD]\\ #,##0.00", + 632: "[$ZWL]\\ #,##0.00", + 633: "[$ZWN]\\ #,##0.00", + 634: "[$ZWR]\\ #,##0.00", } // builtInNumFmtFunc defined the format conversion functions map. Partial format @@ -1111,11 +1319,11 @@ func parseFormatStyleSet(style string) (*formatCellStyle, error) { // | 402 | ر.ع. Arabic (Oman) | // | 403 | ر.ق. Arabic (Qatar) | // | 404 | ر.ي. Arabic (Yemen) | -// | 405 | ریال Persian (Iran) | +// | 405 | ریال Persian (Iran) | // | 406 | ل.س. Arabic (Syria) | // | 407 | ل.ل. Arabic (Lebanon) | -// | 408 | ብር Amharic (Ethiopia) | -// | 409 | रू Nepaol (Nepal) | +// | 408 | ብር Amharic (Ethiopia) | +// | 409 | रू Nepaol (Nepal) | // | 410 | රු. Sinhala (Sri Lanka) | // | 411 | ADP | // | 412 | AED | @@ -1133,7 +1341,214 @@ func parseFormatStyleSet(style string) (*formatCellStyle, error) { // | 424 | AZN | // | 425 | BAM | // | 426 | BBD | -// | ... | ... | +// | 427 | BDT | +// | 428 | BEF | +// | 429 | BGL | +// | 430 | BGN | +// | 431 | BHD | +// | 432 | BIF | +// | 433 | BMD | +// | 434 | BND | +// | 435 | BOB | +// | 436 | BOV | +// | 437 | BRL | +// | 438 | BSD | +// | 439 | BTN | +// | 440 | BWP | +// | 441 | BYR | +// | 442 | BZD | +// | 443 | CAD | +// | 444 | CDF | +// | 445 | CHE | +// | 446 | CHF | +// | 447 | CHW | +// | 448 | CLF | +// | 449 | CLP | +// | 450 | CNY | +// | 451 | COP | +// | 452 | COU | +// | 453 | CRC | +// | 454 | CSD | +// | 455 | CUC | +// | 456 | CVE | +// | 457 | CYP | +// | 458 | CZK | +// | 459 | DEM | +// | 460 | DJF | +// | 461 | DKK | +// | 462 | DOP | +// | 463 | DZD | +// | 464 | ECS | +// | 465 | ECV | +// | 466 | EEK | +// | 467 | EGP | +// | 468 | ERN | +// | 469 | ESP | +// | 470 | ETB | +// | 471 | EUR | +// | 472 | FIM | +// | 473 | FJD | +// | 474 | FKP | +// | 475 | FRF | +// | 476 | GBP | +// | 477 | GEL | +// | 478 | GHC | +// | 479 | GHS | +// | 480 | GIP | +// | 481 | GMD | +// | 482 | GNF | +// | 483 | GRD | +// | 484 | GTQ | +// | 485 | GYD | +// | 486 | HKD | +// | 487 | HNL | +// | 488 | HRK | +// | 489 | HTG | +// | 490 | HUF | +// | 491 | IDR | +// | 492 | IEP | +// | 493 | ILS | +// | 494 | INR | +// | 495 | IQD | +// | 496 | IRR | +// | 497 | ISK | +// | 498 | ITL | +// | 499 | JMD | +// | 500 | JOD | +// | 501 | JPY | +// | 502 | KAF | +// | 503 | KES | +// | 504 | KGS | +// | 505 | KHR | +// | 506 | KMF | +// | 507 | KPW | +// | 508 | KRW | +// | 509 | KWD | +// | 510 | KYD | +// | 511 | KZT | +// | 512 | LAK | +// | 513 | LBP | +// | 514 | LKR | +// | 515 | LRD | +// | 516 | LSL | +// | 517 | LTL | +// | 518 | LUF | +// | 519 | LVL | +// | 520 | LYD | +// | 521 | MAD | +// | 522 | MDL | +// | 523 | MGA | +// | 524 | MGF | +// | 525 | MKD | +// | 526 | MMK | +// | 527 | MNT | +// | 528 | MOP | +// | 529 | MRO | +// | 530 | MTL | +// | 531 | MUR | +// | 532 | MVR | +// | 533 | MWK | +// | 534 | MXN | +// | 535 | MXV | +// | 536 | MYR | +// | 537 | MZM | +// | 538 | MZN | +// | 539 | NAD | +// | 540 | NGN | +// | 541 | NIO | +// | 542 | NLG | +// | 543 | NOK | +// | 544 | NPR | +// | 545 | NTD | +// | 546 | NZD | +// | 547 | OMR | +// | 548 | PAB | +// | 549 | PEN | +// | 550 | PGK | +// | 551 | PHP | +// | 552 | PKR | +// | 553 | PLN | +// | 554 | PTE | +// | 555 | PYG | +// | 556 | QAR | +// | 557 | ROL | +// | 558 | RON | +// | 559 | RSD | +// | 560 | RUB | +// | 561 | RUR | +// | 562 | RWF | +// | 563 | SAR | +// | 564 | SBD | +// | 565 | SCR | +// | 566 | SDD | +// | 567 | SDG | +// | 568 | SDP | +// | 569 | SEK | +// | 570 | SGD | +// | 571 | SHP | +// | 572 | SIT | +// | 573 | SKK | +// | 574 | SLL | +// | 575 | SOS | +// | 576 | SPL | +// | 577 | SRD | +// | 578 | SRG | +// | 579 | STD | +// | 580 | SVC | +// | 581 | SYP | +// | 582 | SZL | +// | 583 | THB | +// | 584 | TJR | +// | 585 | TJS | +// | 586 | TMM | +// | 587 | TMT | +// | 588 | TND | +// | 589 | TOP | +// | 590 | TRL | +// | 591 | TRY | +// | 592 | TTD | +// | 593 | TWD | +// | 594 | TZS | +// | 595 | UAH | +// | 596 | UGX | +// | 597 | USD | +// | 598 | USN | +// | 599 | USS | +// | 600 | UYI | +// | 601 | UYU | +// | 602 | UZS | +// | 603 | VEB | +// | 604 | VEF | +// | 605 | VND | +// | 606 | VUV | +// | 607 | WST | +// | 608 | XAF | +// | 609 | XAG | +// | 610 | XAU | +// | 611 | XB5 | +// | 612 | XBA | +// | 613 | XBB | +// | 614 | XBC | +// | 615 | XBD | +// | 616 | XCD | +// | 617 | XDR | +// | 618 | XFO | +// | 619 | XFU | +// | 620 | XOF | +// | 621 | XPD | +// | 622 | XPF | +// | 623 | XPT | +// | 624 | XTS | +// | 625 | XXX | +// | 626 | YER | +// | 627 | YUM | +// | 628 | ZAR | +// | 629 | ZMK | +// | 630 | ZMW | +// | 631 | ZWD | +// | 632 | ZWL | +// | 633 | ZWN | +// | 634 | ZWR | // func (f *File) NewStyle(style string) (int, error) { var cellXfsID int