ဖိုင်:Workweeks-map.svg

အခြားဘာသာစကားများဖြင့် စာမျက်နှာအကြောင်းအရာများကို ပံ့ပိုးမထားပါ။
This is a file from the Wikimedia Commons
ဝီကီပီးဒီးယား မှ

မူရင်းဖိုင်(SVG ဖိုင်, ၂၇၅၄ × ၁၃၉၈ pixels ကို အကြံပြုသည်, ဖိုင်အရွယ်အစား - ၁.၀၆ MB)

အကျဉ်းချုပ်

ဖော်ပြချက်
English: Countries of the world by their work-week.
 
Monday - Friday
 
Monday - Saturday
 
Sunday - Thursday
 
Sunday - Friday
 
Saturday - Thursday
 
Monday - Thursday and Saturday
 
Mixed
This map is based on https://en.wikipedia.org/w/index.php?title=Workweek_and_weekend&oldid=858023057
ရက်စွဲ
ရင်းမြစ် ကိုယ်ပိုင်ဖန်တီးမှု
စာရေးသူ MartinThoma

Script to create the map:

#!/usr/bin/env python

# 3rd party modules
from lxml import etree
import mpu.pd


def main(filename="weekend.svg"):
    mon_fri = ['Dominican Republic', 'Lebanon', 'Serbia', 'Albania', 'Angola',
               'Argentina', 'Armenia', 'Azerbaijan', 'Austria', 'Australia',
               'Benin',
               'Belarus', 'Belgium', 'Brazil', 'Burundi', 'Bulgaria', 'Canada',
               'Cambodia', 'Cameroon', 'Chile', 'China', 'Croatia',
               'Costa Rica', 'Czech Republic', 'Denmark', 'Ethiopia',
               'Estonia', 'Finland', 'France', 'Gabon',
               'Gambia', 'Germany', 'Ghana', 'Greece', 'Hungary', 'Indonesia',
               'Ireland',
               'Italy', 'Côte d\'Ivoire', 'Japan', 'Kazakhstan', 'Kenya',
               'Lao People\'s Democratic Republic', 'Latvia', 'Lesotho',
               'Lithuania', 'Madagascar',
               'Malawi', 'Mali', 'Malta', 'Mauritania', 'Mongolia', 'Morocco',
               'Mozambique', 'Netherlands', 'New Zealand', 'Nigeria',
               'Norway',
               'Pakistan', 'Poland', 'Portugal', 'Romania', 'Russia', 'Rwanda',
               'Senegal',
               'Singapore', 'Slovakia', 'Spain', 'Sri Lanka',
               'South Africa', 'South Korea', 'Suriname', 'Swaziland',
               'Sweden', 'Switzerland',
               'Seychelles', 'Taiwan', 'Tanzania', 'Togo', 'Thailand',
               'Trinidad and Tobago', 'Tunisia', 'Turkey', 'Ukraine',
               'United Kingdom', 'United States',
               'Vietnam', 'Congo (Democratic Republic of the)', 'Zambia',
               'Zimbabwe']
    mon_sat = ['Equatorial Guinea', 'Hong Kong', 'Mexico', 'Philippines',
               'Uganda', 'India', 'Colombia']
    sun_thu = ['Afghanistan', 'Algeria', 'Bahrain', 'Egypt', 'Iraq', 'Israel',
               'Jordan', 'Kuwait', 'Libya', 'Maldives', 'Oman', 'Qatar',
               'Saudi Arabia', 'Sudan', 'Syria', 'Yemen',
               'United Arab Emirates', 'Bangladesh']
    sat_thu = ['Djibouti', 'Palestine', 'Iran']
    sun_fri = ['Nepal']
    mon_thu_sat = ['Brunei Darussalam']
    mixed = ['Malaysia']

    countries = mpu.pd.countries
    countries = countries.set_index('English short name (upper/lower case)')
    country2dict = countries.to_dict('index')

    legend = [(mon_fri, '#B8D8D8'),
              (mon_sat, 'orange'),
              (sun_thu, '#4F6367'),
              (sat_thu, 'red'),
              (sun_fri, 'tomato'),
              (mon_thu_sat, '#ff00ff'),
              (mixed, '#00ffff')]

    colors = {}
    for collection, color in legend:
        for country in collection:
            if country in country2dict:
                code = country2dict[country]['Alpha-2 code'].lower()
                colors[code] = color
            else:
                print('Could not find the Alpha-2 code for \'{}\' in mpu'
                      .format(country))

    tree = read_svg(filename)
    root = tree.getroot()
    for country_id in colors.keys():
        element = root.xpath('//*[@id="{}"]'.format(country_id))
        if len(element) == 1:
            element = element[0]
            element.set("style", 'fill: {};'.format(colors[country_id]))
            for el in element.getchildren():
                el.set("style", 'fill: {};'.format(colors[country_id]))
        else:
            print("Wrong length for id={}".format(country_id))
    write_svg(root)


def read_svg(filename):
    """
    Read an SVG file.

    Parameters
    ----------
    filename : str

    Returns
    -------
    tree : lxml.ElementTree
    """
    with open(filename, 'r') as f:
        tree = etree.parse(f)
    return tree


def write_svg(root, filename='weekend-auto.svg'):
    """
    Read an SVG file.

    Parameters
    ----------
    root : lxml.Element
    filename : str
    """
    etree.ElementTree(root).write(filename, pretty_print=True)


if __name__ == '__main__':
    main()

လိုင်စင်သတ်မှတ်ခြင်း

ကျွန်ုပ်၊ ဤလုပ်ဆောင်ချက်၏ မူပိုင်ခွင့်ပိုင်ရှင်အနေဖြင့် ဤနေရာမှ အောက်ပါလိုင်စင်အောက်တွင် ထုတ်လွှင့်ပါသည်:
Creative Commons CC-Zero ဤဖိုင်ကို Creative Commons CC0 1.0 Universal Public Domain Dedication အောက်တွင် ရရှိနိုင်အောင် ဆောင်ရွက်ထားပါသည်။
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

ပုံစာများ

ဤဖိုင်၏ဆိုလိုရင်းကို စာတစ်ကြောင်းရှင်းလင်းချက်ဖြင့် ထည့်သွင်းရန်

Items portrayed in this file

depicts အင်္ဂလိပ်

media type အင်္ဂလိပ်

image/svg+xml

ဖိုင်မှတ်တမ်း

ဖိုင်ကို ယင်းနေ့စွဲ အတိုင်း မြင်နိုင်ရန် နေ့စွဲ/အချိန် တစ်ခုခုပေါ်တွင် ကလစ်နှိပ်ပါ။

နေ့စွဲ/အချိန်နမူနာပုံငယ်မှတ်တမ်း ဒိုင်မန်းရှင်းများအသုံးပြုသူမှတ်ချက်
ကာလပေါ် ၁၂:၁၄၊ ၂၉ စက်တင်ဘာ ၂၀၂၃ ၁၂:၁၄၊ ၂၉ စက်တင်ဘာ ၂၀၂၃ ရက်က မူအတွက် နမူနာပုံငယ်၂၇၅၄ × ၁၃၉၈ (၁.၀၆ MB)VyvagabaChanged the file to an svg file that is more easily editable, addressed some recent updates and missing data.
၁၂:၁၂၊ ၂၉ စက်တင်ဘာ ၂၀၂၃ ၁၂:၁၂၊ ၂၉ စက်တင်ဘာ ၂၀၂၃ ရက်က မူအတွက် နမူနာပုံငယ်၂၅၆၀ × ၁၃၁၄ (၁.၀၉ MB)VyvagabaReverted to version as of 19:41, 4 September 2018 (UTC)
၁၂:၀၇၊ ၂၉ စက်တင်ဘာ ၂၀၂၃ ၁၂:၀၇၊ ၂၉ စက်တင်ဘာ ၂၀၂၃ ရက်က မူအတွက် နမူနာပုံငယ်၂၇၅၄ × ၁၃၉၈ (၁.၀၆ MB)VyvagabaChanged the file to an svg file that is more easily editable, addressed some recent updates and missing data.
၁၉:၄၁၊ ၄ စက်တင်ဘာ ၂၀၁၈ ၁၉:၄၁၊ ၄ စက်တင်ဘာ ၂၀၁၈ ရက်က မူအတွက် နမူနာပုံငယ်၂၅၆၀ × ၁၃၁၄ (၁.၀၉ MB)MartinThomaUser created page with UploadWizard

ဤဖိုင်ကို အသုံးပြုထားသော စာမျက်နှာများမရှိပါ။

ဂလိုဘယ် ဖိုင်သုံးစွဲမှု

အောက်ပါ အခြားဝီကီများတွင် ဤဖိုင်ကို အသုံးပြုထားသည်-

မီတာဒေတာ