Đề Xuất 1/2023 # 28 Beautiful Words For Love From Around The World # Top 4 Like | Beiqthatgioi.com

Đề Xuất 1/2023 # 28 Beautiful Words For Love From Around The World # Top 4 Like

Cập nhật nội dung chi tiết về 28 Beautiful Words For Love From Around The World mới nhất trên website Beiqthatgioi.com. Hy vọng thông tin trong bài viết sẽ đáp ứng được nhu cầu ngoài mong đợi của bạn, chúng tôi sẽ làm việc thường xuyên để cập nhật nội dung mới nhằm giúp bạn nhận được thông tin nhanh chóng và chính xác nhất.

28 Beautiful Words for Love from Around the World – and Their Literal Translations into English

Full disclosure: This post contains affiliate links. ?

I made this video guide to help you get started:

Keep reading for an in-depth overview.

There are more words for “love”  than there are languages in the world. Let me explain with an example:

The Japanese language has dozens of ways to say “you”. There are polite forms, very polite forms, impolite forms and downright rude forms.

There are different ways of addressing men and women, immediate superiors, higher superiors, inferior colleagues, male children, female children, your boyfriend, girlfriend or spouse. There are even different ways to address a suspected criminal depending on whether they’ve just been accused, are on trial, or have been convicted.

Do all these different words for “you” exist just to annoy foreigners learning Japanese? Of course not. They’re integral to Japanese culture, and they give foreigners valuable insight into an intangible aspect of that culture, namely that status and relationships are very important in Japan.

Likewise, there are many languages that have several different ways to express the concept of love. What do you suppose this says about those cultures?

English has a few different words for different kinds of love, including fondness, affection, and infatuation (though one could argue that not all of these are actually types of love). But when it comes to the word “love” itself, this one word can express all of these concepts and more.

Consider the following English sentences:

I love my husband/wife

I love my mother

I love my best friend

I love learning languages

I love Mondays

No matter what kind of love we’re talking about in English, we can use one single word for it: “love”. This is as baffling to some students of English as all the different forms of “you” are to people learning Japanese.

Why should the concept of romantic love (“I love my husband/wife”) use the same word as parental love (“I love my mother”), or love of an object?

In English, the word “love” has become diluted so that it can be used in place of “like”. In some languages, the difference is very important. Is the English language limited by not putting much value on this difference? Monolingual English speakers would probably say no, but that’s because they don’t have anything to compare it to.

The truth is, the more languages you learn, the more you see the benefit of having various ways to refer to “love”.

Let’s take a look at how some languages express the idea of love. Some languages have just one or two words, like English. Others have many more, and they’re as integral to the culture as all the different Japanese words for “you” are to Japanese culture.

1. Greek Words for Love

Greek famously has four main words for love:

Έρωτας (Erotas) (known as Έρως (Eros) in Ancient Greek): This refers only to romantic love or courtship. You’ll recognize it as the root of the English word erotic

Aγάπη (Agape): In Ancient Greek, this word described a spiritual or charitable love, such as the love that God has for man. This word is used often in the Greek translation of the Bible. In modern Greek, its definition is more broad, and can be used to express love for family or a romantic partner.

Φιλία (Philia): The general word for non-romantic love between equals, such as between friends and family, or love for activities. You’ll recognize this word as a suffix of several English words, such as “cinephile” (film lover) or “francophile” (French language lover). This word isn’t used as often today as it was in Ancient Greek.

Στοργή (Storgé): This is the word used to describe the natural affection that exists between parents and children. This word is also more rare today than it was in ancient times

2. Love in American Sign Language

ASL is a language unto itself. It doesn’t just translate words directly from English into signs, as many people think. ASL grammar is also very different from English grammar. ASL has two ways to say the English word “love” (video credits: Signing Savvy: ASL videos and learning resources):

1. Love for actions or objects (e.g. “I love learning languages”). This word is signed by kissing the back of your fist:

2. Love for living beings (e.g. “I love my mother/spouse/dog”). This word is signed by crossing your arms over your chest and “hugging” yourself:

3. Japanese Words for Love

As you’ve probably already guessed from the introduction, Japanese is a highly nuanced language. This goes for a concept like “love” as well. Though luckily there aren’t as many words for love as there are for “you”! There are two main words for the concept of love, but the usages of each are highly dependent on a variety of cultural factors.

愛 (Ai): Depending on the context, 愛 can be used to refer to several types of love, including friendships, family, and love of things or activities. It’s used as the base for constructing many different love-related words, such as 愛犬家 (aikenka; a dog lover), 母性愛 (boseiai; maternal love) or 博愛 (hakuai; philanthropy).

恋 (Koi): This word usually implies physical or romantic love, though in certain contexts, it can imply a more “selfish” type of love. It’s used in the construction of such romance-related words as 恋人 (koibito; a boyfriend/girlfriend), 恋敵 (koigataki; a rival in love) or 初恋 (hatsukoi; first love).

4. Tamil Words for Love

Tamil is the language of Sri Lanka and two states in India. It’s also one of the four official languages of Singapore. Its roots go back thousands of years, giving it a rich history in literature and poetry.

According to some sources, there are dozens of different words in Tamil to express the concept of love. Here are a few words:

அன்பு (Anpu): This is the general term for love. It can describe romantic love, affection, friendship or devotion.

காதல் (Katl): Katl is reserved for expressing romantic love.

ஆசை (Achai): This is the love you feel when you long for someone.

பாசம் (Pachm): The feeling of deeply connected love. You can use this word to describe parental love, for example.

கைக்கிளை (Kaikkilai): This word probably doesn’t have an equivalent in very many languages. It’s used to express a romantic love that isn’t reciprocated by the other person. It’s a great example of what a rich, nuanced language Tamil is.

5. Spanish Words for Love

While Spanish really only has one noun for love (amor), when it comes to the verb “to love”, there are three different Spanish words to choose from. These depend on context, of course.

Querer: The word querer is the general term to use when you love a person, including friends, family or romantic partners. It also translates into English as “to want”, but don’t let that confuse you. “Te quiero” is not the equivalent of the decidedly un-romantic English sentence “I want you”. It makes more sense to look at the word querer as a homonym having two distinct meanings in Spanish: “love” and “want”. Just like the word “love” in English can also refer to a score of zero in tennis, which has nothing to do with the feeling of love.

Amar: Amar is a much stronger version of querer, and is only used in a romantic way.

Encantar: You might recognize the origin of the English word “enchant” in the Spanish verb encantar. This word is most similar to the English word “love” when referring to activities. It indicates a strong like. If you’d say “I love studying Spanish” in English, then use encantar for the Spanish translation: “Me encanta estudiar español.”

6. Arabic Words for Love

Another profoundly rich and varied language, Arabic has at least eleven different words for love. These range from general terms similar to English, to very specific terms for certain phases of love that you might go through while falling deeply in love with someone. Here are a few key words from that spectrum:

حب(Habb): This is the general word for “love”. It can describe romantic love, or love for family, activities or objects. You might recognize it as the root of the Arabic terms of endearment habib (for men) and habibi (for women).

عشق(‘Ishq): When you’re in the “honeymoon phase” of love and are feeling a passionate love for your partner, ’ishq is the word to use. It’s the feeling you have when the initial love you felt for someone has now taken root. In fact, the origin of this word comes from the Arabic word for “vine”. This conveys the impression of the love having been planted in your heart so it can grow into passion.

شغف(Shaghaf): This word is reserved for an intensely burning love or lust. You can use it to describe being madly in love with someone.

حنان(Hanaan): Hanaan has several meanings, including compassion, tenderness, and loving care. It’s a common Arabic first name for girls.

7. Irish Words for Love

Irish is the first official language of my home country. People are often surprised to learn that it’s quite different from English, being a Celtic language rather than Germanic. Here are a few of the numerous Irish words to express love:

Grá: This is the all-purpose word for love, which can be used in generally the same way as the English word “love” (for loving people, places, romantic partners, etc.)

Cion: Cion roughly translates as “affection”, such as the love you might have for a child.

Searc: This is used for describing romantic love or “true love”.

Cumann: Use cumann when you want to express the love and companionship that exists between friends.

8. Sanskrit Words for Love

Sanskrit is a classical language that has influenced modern South and Southeast Asian languages at least as much as Greek and Latin have influenced modern European languages. This language has an astounding 96 words for love. Here is just a small sampling of the vast spectrum of Sanskrit words for love.

स्नेह (Sneha): Maternal love or affection.

काम (Kama): Erotic or amorous love. You might recognize this word from the title of the famous ancient text, the Kama Sutra.

अनुरक्ति (Anurakti): Passionate love or attachment.

रति (Rati): This word originally meant to enjoy or delight in something or someone. The meaning has evolved to imply a physical desire or love.

प्रिय (Priya): Meaning “darling” or “beloved”, Priya is a common given name for girls in India and Nepal.

9. Love in the Klingon Language

There’s not much to be said here. The fictional Klingon language, from the Star Trek universe reportedly has no words for love. Close translations include “unhate” and “honour”. What do you suppose this says about that culture?

This is just a tiny sampling of all the different ways there are in the world to express the complex emotions associated with love. If you know of other languages that have multiple ways to describe different kinds of love, or languages whose nuances for love can’t be directly translated into English, I’d love to hear about them 😉

Founder, Fluent in 3 Months

Speaks:

Spanish, French, German, Italian, Portuguese, Esperanto, Mandarin Chinese, American Sign Language, Dutch, Irish

Fun-loving Irish guy, full-time globe trotter and international bestselling author. Benny believes the best approach to language learning is to speak from day one

View all posts by Benny Lewis

The Best Minecraft Seeds For Beautiful, Amazing Worlds

The only thing you need to keep in mind when it comes to using these seeds is to make sure you’re running the correct version of Minecraft. Otherwise, your seed has a chance of not spawning exactly what you want.

Minecraft survival seeds

Castaway

Shipwreck seeds are popular because they give you that wonderful little head start that we all crave. This one is particularly potent thanks to the collection of different enchanted items, some TNT, and even a diamond, among other things. Not only that, but these can all be found close to your spawn point. If you want a strong start, this is a great choice.

Source: Minecraft Seeds HQ

Exposed Stronghold

Don’t be fooled by your spawn point-that’s not the ravine you’re looking for. Want a glimpse of a true underground wonder? Head towards coordinates 236 68 -704. Peeking into the chasm, you’ll spot an oaken, open-plan (alright, it’s just missing a few walls. Let us play estate agent) library intersecting a stronghold. Ladders and bookshelves line the walls: you might need a few tomes to enchant your gear, seeing as though the end portal is nearby…

Source: 9Minecraft

Minimalist Survival Island

As Gandhi once remarked, “To achieve true enlightenment, one must isolate themselves upon an unforgiving Minecraft survival island seed.” This pared-down setting might well inspire some soul-searching. Essential supplies are practically non-existent here, the nearby squid your only friends-not counting Mr. Grass, Mr. Sand and Señor Gravel. After some time you too may find yourself anthropomorphising inanimate blocks.

Best survival seed ever; 10/10, would go mad there again.

Source: Minecraftseeds.co

Temple of Doom

What if we put a temple right inside a jungle, and then plonked that near a pillager outpost? Sounds good, right? Well, that’s exactly what this seed does. It’s a great choice for players looking for a nice challenge that stays within sight, but it’s also just a lot of fun starting so close to a temple.

Source: Minecraft Seeds HQ

Double shipwreck at spawn

What’s better than coming across a desolate shipwreck? Finding two within spitting distance of each other, of course. If you fancy a wee break from searching the world in search of booty, this seed spawns you on a small island. Look to the left and you’ll find a floating ruined ship, and to the right, another one. What more could you ask for? No, not a third ruined ship; that would be too far.

Source: Minecraft Hub

Turtle power

Teenage, standard, boring turtles. Teenage, standard, boring turtles. Teenage, standard, boring turtles. Turtles in a regular shell. Turtle power! Although raising your own turtle colony would be fun, there’s more than that to this seed.

As you’ve probably already spotted, just right of the spawn is a slightly buried ocean ruin. After you’ve looted up that one, head into the water for yet another ocean ruin to explore.

Source: Minecraft Seeds HQ

Commandeer Your Own Mansion

Nothing beats charging headfirst into a mansion with the intention of besting every Illager (not to be confused with Villager) that moves. But finding a mansion in survival is no easy feat. It’ll take hours of scouring every forest hoping that one day you’ll come face-to-face with that foreboding wooden structure. So instead of wasting countless hours, how about you just type this seed in and spawn directly in front of the mansion?

Source: Minecraft Seed HQ

Minecraft village seeds

The Township

On the subject of Shipwrecks, we have no idea how this ended up here, but there seems to be a ship parked in the middle of this village. We feel as though having a gigantic ship in the centre of town might be a cause for alarm, but nobody else seems all that bothered by it. Well, there’s also another ship underwater nearby and even an ocean ruin to explore. You had better start learning to hold your breath.

Source: Minecraft Seeds HQ

Village Surrounded by Snow

Best return to civilisation, eh? There’s no NPC village more scenic than this one, a diminutive hamlet nestled in a thawed patch of Cold Taiga biome. You’ve a friendly neighbourhood blacksmith, a quaint little farm for food, and there are even diamonds to, erm, borrow, if you poke about. If you’re after something to build a thriving metropolis off of, and are a sucker for a snowy backyard, this is the seed for you.

Source: Minecraft Village Seeds

Overpowered Loot and Water Village

An ample village can make or break a run. This village in particular isn’t your usual wheat and wooden swords affair. Oh no. This village has a blacksmith forge which contains seven blocks of obsidian, nine steel ingots, two gold ingots, a steel helm and chestplate, a steel pickaxe, and a super-useful three diamonds. And better yet, it’s technically not classed as cheating. What’s not to love?

Source: Minecraft Seed HQ

Monstrously Massive Seaside Village

Fancy moving to a seaside town with a gorgeous view? Then look no further! Villages often spawn in small groups. You may have seen images online of hundreds of villager houses smushed together. They’re fake, and in most cases, from a mod. In actual fact, getting multiple villages to spawn next to each other is really quite rare. That is, with the exception of this seed where an absolutely gigantic village has spawned just off the coast.

Source: Minecraft Seed HQ

Spoopy Zombie Village

Finding Survival too easy? Turn Minecraft into The Walking Dead and that’ll surely solve it. This seed puts the zombies front and centre. For some strange, unexplained reason, all that remains of this forgotten settlement are zombie villagers. Maybe the regular zombies didn’t like their prices, formed a union and rebelled? Who knows… Either way, it’s your job to sort this mess out. Just make sure you set the time to night (“/time set night”) before they all burn to smithereens in the sunlight.

Source: Minecraft Seed HQ

Minecraft world seeds

What Lies Beneath

This seed places you within spitting distance of a blacksmith village, but one that is more than it seems. Just underneath the village is a great ravine and a complex system of mines. It’s all very dramatic and feels like you’ve discovered some hidden mythical cave complex, especially if you accidentally fall into the lava below.

Source: Minecraft Seeds HQ

Iceland

Okay. So. Iceberg biomes are cool. Not only do they carry this weird foreboding feeling, but they’re great to build a home in. Who doesn’t want to live in an ice castle? What makes this seed so special is, like many seeds, you spawn on an island. Only with this seed, turn in any direction and all you see is ice spikes. You better think fast, because surviving this seed isn’t going to be easy.

Source: Minecraft Seeds HQ

Dive into the reefs

It’s been said a million times already but it bears repeating: Minecraft can be beautiful, and since the introduction of coral, it’s never looked better. What this seed is all about is seeing the beauty that lurks beneath.

Source: Minecraft Seeds HQ

Something’s Wrong

I’ve gotta be honest with you, I have no idea what’s going on with this world. Why is there a mountain on top of a mountain? Why is the village built up that high? How are the villagers even able to reach their crops? Why is there a small shack on the side of the mountain to the right? Although that last one would make a pretty decent place to store your loot. Let’s see a skeleton try to snipe you up there.

To get this one working, just create a new world, input the seed, and turn amplified worlds on. You’ll spawn right near the village, meaning setting up before you go hunting should be a breeze.

Source: Minecraft-Seeds.net

Live Life Above the Clouds

Turn directly right from the spawn area and keep heading in that direction. You’ll eventually come to a host of islands, only they won’t be out at sea, they’ll be floating in the air like they’re being held up by some sort of invisible marionette. Magic, you say? Yeah, lets go with ‘magic’. As sky islands take a fair amount of time to build, this seed is great for those who want to skip the building part and head straight to starting a new life up in the sky.

Source: Epic Minecraft Seeds

Flower Forest and Ice Plains

The Ice Plains Spikes biome is a rare variant of the Tundra biome, featuring huge sculptural pillars of Packed Ice and, er… not a lot else, actually. It doesn’t half make a lovely backdrop though-which is why this seed is so spectacular. You spawn in a picturesque flower forest, the ocean lapping at one side and a frigid paradise skirting the other. The perfect setting for an Adventure Time tribute build, perhaps.

Source: Minecraft Village Seeds

Giant Floating Island feat. Ominous Abyss

Paradisiacal islands are all well and good, but if you fancy something a little more existential, why not try this highly improbable seed? A gigantic grassy landmass hovers in the air with a flagrant disregard for the laws of physics, overlooking the dark, hopeless maw of a perversely alluring ravine… But before you go flinging yourself in in search of treasure, we should mention there’s a jungle temple just across the river. Slightly less drastic.

Source: Planet Minecraft

Lava-filled Desert Mountain with Splash of Greenery

Source: Epic Minecraft Seeds

Beautiful Mesa Forest

As if layer upon fudgy layer of colourful clay wasn’t a tasty enough prospect for you, this mesa seed boasts several other interesting quirks. You start in a ravine where thick clusters of oak trees grow: a short stroll up onto the plateau, and you’ll notice a wide-ranging mesa forest with a lake inside a deep crater. Find the cave hidden around the rim of the crater, and you’ll drop right into an extensive system of underground tunnels.

Source: Minecraft Village Seeds

Landlocked Mushroom Biome

Minecraft’s shroomy kingdoms are normally rather lonely affairs: Tiny little landmasses far out to sea, with a few Mooshrooms sprinkled about for good measure. This seed, however, generates a uniquely landlocked Mushroom Biome. Upon spawning, you’re at liberty to leg it into the emerald wilderness, butarmed with just a wooden bowl and your wits, it’s possible to craft a fungal abode and live on infinite mushroom stew. Going veggie has never been so simple.

Source: Minecraft Seeds

Hollow Mountain, Hello Zombies

Being an aspiring Minecraft supervillain in this day and age is no picnic. In fact, it’s a logistical nightmare. Where to find room to install an intimidatingly large lava wall? How to conceal your TNT-powered superweapons? And the bodies? Well, this seed has a solution: a 244-block-high hollow mountain practically made for housing all your dastardly designs. There’s even an exposed zombie dungeon at the summit for unlimited XP farming.

Source: Minecraft Seeds

Seaside Mega-Taiga

Source: Minecraft Village Seeds

Crazy Crater

Source: Minecraft Seeds

Mountainous Snowy Island

Not all islands have to be tropical, you know. The highest points of this Extreme Hills island are dusted with snow and covered with clouds. The downside is that there are no animals living on the island, so your lunchtime BLT ain’t happening here. It’s far from a hostile place, though: there’s tons of exposed coal in the cliffs, and plenty of trees and grass to get you up and running.

Source: Minecraft Village Seeds

Minecraft Pocket Edition seeds

Amazing Aquatic Minecraft PE Seed

This is a handy seed if you want a world that lets you immediately get into some aquatic action. Nearby the island spawn you’ll find an ocean ruin, ocean monument, a mushroom biome, and an iceberg field. That’s a pretty rare combination to find so close together.

Source: Minecraft Seed HQ

Diamonds Below Spawn Village

Sometimes you just want to hop into a new Minecraft world and get some good tools quickly. With this seed, you’re guaranteed to find some handy diamonds early on if you head to the village near spawn and start digging. For the best chance at finding a diamond cluster, dig straight down from the handing bell in the village.

Source: Minecraft Seed HQ

Coastal Blacksmith Village by Giant Ravine

You definitely want to check out this picturesque blacksmith village. Not only is it on a peaceful sandy coast, but flanking it from the left is a giant ravine. It’s such a cool place to explore, but even cooler if you decide to build your own home nearby. It kind of has everything: good sights, useful resources, and a friendly village.

Source: Minecraft Seed HQ

Shipwreck Overtaken by Coral Reef

I’ll take any excuse to diver underwater and visit a coral reef in Minecraft. They’re beautiful enough to justify a trip in their own right, but this seed spawns the player near a reef that has overtaken a sunken ship! It’s a fun and pretty way to get a jump start on your new Minecraft world.

Source: Minecraft Seed HQ

Office Space: From Vba Macro To Word Add

Office Space

From VBA Macro to Word Add-in

Robert Bogue

Code download available at: OfficeSpace2008_05.exe(166 KB)

Contents

Book Learning Macro Basics Moving Macros to VSTO Writing New Add-In Code More Buttons

Document automation isn’t a new functionality by any means. It has been going on since the invention of macros, and there has been a full-fledged programming model within Microsoft® Office applications since the early 1990s. For many years, the Office tools have featured macro recorders that weren’t limited to simply replaying keystrokes but have been capable of writing code on the fly as well. Macros have even demonstrated that they are functional enough to write viruses. And while writing a virus using a Word macro may be a dubious feat, it is a feat nonetheless.

However, even with all of the capabilities of Visual Basic® for Applications (VBA), there are some things it just doesn’t do very well. In the early days of VBA, XML hadn’t yet been invented, the Internet was in its infancy, and the first HTML pages were just beginning to appear. As such, it’s no wonder that making a Web service call isn’t well handled in the context of Visual Basic for Applications.

The Microsoft .NET Framework CLR, on the other hand, understands these technologies quite well. The ability to call Web services is just one among a number of reasons for wanting to write .NET-targeted code rather than VBA-and doing so means using Visual Studio® Tools for Office (VSTO). But switching from VBA to VSTO doesn’t have to be a case of throwing the baby out with the bath water; rather, it can be just a natural way to extend how you are already developing solutions in Office.

In this column you’ll see how to use Word to capture some VBA code that solves a basic problem. Then I will use the latest version of VSTO included with Visual Studio 2008 to wrap this code into a deployable Word add-in. I’ll also write some simple code for some of the tasks that the macro recorder either just can’t record or doesn’t record in an optimal way.

Book Learning

Recently, I found myself in a situation where this kind of VBA-to-VSTO conversion was perfect for the problem at hand. I was finishing my latest book, The SharePoint Shepherd’s Guide for End Users. The book is self-published, and I needed to output the manuscript from Word into a PDF that the printer could use. For that to work, there were several steps I first needed to complete to get the manuscript ready.

First, I had to assemble multiple files into one large document. With more than 140 individual files representing 13 sections and 116 tasks, munging them together wasn’t something I wanted to do by hand. Having so many individual files was great when working with Microsoft SharePoint® because it allowed for individual tracking of each task through the editorial workflow, but the sheer number made assembly a task best handled by automation.

Second, I wanted to make sure that all of the tracked changes in all of the documents had been accepted. During the editing process, I used revision marks (via the Track Changes feature in Word) to keep track of editing and other changes to the manuscript. The revision marks are supposed to all be accepted as part of the final checkout of the content, but if I missed some, the formatting of the revision marks would stand out in the final book, which wouldn’t be very professional looking.

I am going to illuminate the process of creating each of these pieces and the relative ability of the macro recorder to capture the code needed for each function. I’ll start by using the recorder to generate the basic automation code. From there I’ll take a closer look at workable but sub-optimal generated code. Finally, I’ll look at the recorder not generating code at all. I’ll convert the VBA code into VSTO code and put it into a Word add-in that I can use to assemble the final book. Just to make the process more challenging, I’ll convert the code from VBA to C# in the course of bringing it into VSTO.

Macro Basics

Figure 1** Enabling the Developer Tab in the Ribbon **

Figure 2** Record a Macro from the Developer Tab **

Figure 3** Naming the Macro **

Figure 4 AddFiles VBA Macro

Sub AddFiles() ' ' AddFiles Macro ' ' ChangeFileOpenDirectory _ "https://sharepoint.contoso.com/sites/sharepoint/" & _ "Shared%20Documents/SharePoint%20Tasks/" chúng tôi fileName:= _ "https://sharepoint.contoso.com/sites/SharePoint/" & _ "Shared%20Documents/SharePoint%20Tasks/" & _ "Task001%20-%20Create%20a%20Team%20Web%20Site.docx", _ ConfirmConversions:=False, _ ReadOnly:=False, _ AddToRecentFiles:=False, _ PasswordDocument:="", _ PasswordTemplate:="", _ Revert:=False, _ WritePasswordDocument:="", _ WritePasswordTemplate:="", _ Format:= wdOpenFormatAuto, _ XMLTransform:="" Selection.WholeStory chúng tôi chúng tôi Template:="Normal", NewTemplate:=False, DocumentType:=0 Selection.PasteAndFormat (wdPasteDefault) End Sub

Notice that there is an extraneous line that resets the next File Open directory. After that you see the Open command, and then there’s the series of commands to copy the text, create a new document, and paste the text into the new document. The code that the macro recording produced isn’t perfect, but it isn’t bad either. So I’ll take that, enhance it, and put it into VSTO.

Moving Macros to VSTO

To get started with VSTO, I first create a Word 2007 Add-in project. I open Visual Studio, start a new project, use the Word 2007 Add-in template for the project, and name the project PublishPrep. Upon successful creation of the new VSTO project, your Visual Studio 2008 environment should look similar to Figure 5.

Figure 5** New Word Add-In Project **

With the project created, I need to create a way for users to access the functionality in the add-in. For 2007 Office system applications, that means creating a Ribbon tab and buttons. First, add a new item to your project and select the Ribbon (Visual Designer) template from the Add New Item dialog. Name your new ribbon PublishPrep.

The next step is to customize the Ribbon. In this case, I’m just going to create a group that will live on the Add-ins tab instead of adding my own tab to the Ribbon. My group will contain three buttons.

Figure 6** Configuring the PublishPrep Ribbon **

Open the toolbox, scroll down to the Office Ribbon Controls group, and drag three button controls over onto the Publishing Preparation group. Note that the buttons will stack vertically by default.

Figure 7** Buttons and Group Configured for the Add-In **

Writing New Add-In Code

The first part of the code, a function called AppendFile (see Figure 8), takes a single parameter, the file name. At a quick glance the code doesn’t resemble the code the macro recorder wrote for me, but that’s mostly an illusion.

Figure 8 AppendFile

void AppendFile(string file) { if (string.IsNullOrEmpty(file)) return; Application app = Globals.ThisAddIn.Application; Document activeDoc = app.ActiveDocument; if (activeDoc == null) return; object fileObj = file; object confirmConversions = false; object readOnly = true; object addToRecentFiles = false; object passwordDocument = Missing.Value; object passwordTemplate = Missing.Value; object revert = true; object writePasswordDocument = Missing.Value; object writePasswordTemplate = Missing.Value; object format = Missing.Value; object encoding = Missing.Value; object visible = false; object openAndRepair = false; object documentDirection = Missing.Value; object noEncodingDialog = Missing.Value; object xMLTransform = Missing.Value; Document newDoc = app.Documents.Open(ref fileObj, ref confirmConversions, ref readOnly, ref addToRecentFiles, ref passwordDocument, ref passwordTemplate, ref revert, ref writePasswordDocument, ref writePasswordTemplate, ref format, ref encoding, ref visible, ref openAndRepair, ref documentDirection, ref noEncodingDialog, ref xMLTransform); app.Selection.WholeStory(); app.Selection.Copy(); activeDoc.Select(); object collapseEnd = WdCollapseDirection.wdCollapseEnd; app.Selection.Collapse(ref collapseEnd); app.Selection.Paste(); object saveChanges = WdSaveOptions.wdDoNotSaveChanges; object originalFormat = WdOpenFormat.wdOpenFormatAuto; object routeDocument = Missing.Value; newDoc.Close(ref saveChanges, ref originalFormat, ref routeDocument); object breakType = WdBreakType.wdPageBreak; app.Selection.InsertBreak(ref breakType); }

The first four lines just get the active document and perform error checking. If there’s no active document, you can’t exactly append to it, and if you don’t have a file name to append, there’s not much more you can do. The other thing that these lines are doing is getting references to the application-which is assumed in VBA-and the active document when the button method was called, something the recorded version of the macro didn’t need to do.

The next set of lines-the object variable declarations-are necessary because of the way C# makes the call to the COM components that Word exposes. I need to specify missing values, and since the values are all passed by reference, I need a variable to hold them.

The code then performs the same copy operation that the macro recorder generated. The real difference here is that my add-in code is responsible for the management of the active document, including making sure that the cursor position is set to the end of the active document.

The final block of code closes the document I opened, making sure not to save any changes. It also adds a page break after the inserted content because I want to make sure that the contents of the individual files don’t run together.

The second part of the code actually gets the list of files to assemble and calls AppendFile (see Figure 9). This isn’t code that the macro recorder captured, but it is where you see the power of VSTO because it allows you to leverage all of the .NET constructs. In this case, I’ll leverage the OpenFileDialog control, the ability to open and read from a text file, the use of generics to create a list of files, and calling another smaller method that iterates through the list.

Figure 9 VSTO Power Behind the Button

using Microsoft.Office.Interop.Word; using chúng tôi using System.Reflection;

Finally, replace the method stub created by Visual Studio with the code in Figure 9.

More Buttons

Figure 10** Enabling the Developer Tab in the Ribbon **

Sub AcceptAllChanges() ' ' AcceptAllChanges Macro ' WordBasic.AcceptAllChangesInDoc End Sub

The macro recorder recorded this action to use the WordBasic object. The WordBasic object is a holdover from before Word macros were modified to use VBA. It’s not the best way to approach the problem. It’s much better to use ActiveDocument. You can either employ the AcceptAllRevisions method or the Revision property’s AcceptAll method. I slightly prefer the Revisions.AcceptAll nomenclature, but either method works.

Here is the code necessary to accept revisions from within VSTO code:

One interesting thing to note is that the indexer here is 1-based, not zero-based as you would expect in C#.

Robert Bogue, Microsoft MVP for Microsoft Office Sharepoint Server, MCSE, and MCSA:Security, has contributed to more than 100 book projects and numerous other publishing projects. Robert blogs at chúng tôi you can reach him at Rob.Bogue@thorprojects.com. Find out more about his latest book project, The SharePoint Shepherd’s Guide for End Users, at sharepointshepherd.com.

Adjective Words To Describe Beautiful Women &Amp; Girl

English is a beautiful language as it is filled with all the amazing words which have the power to influence your day. Now if you are one of those who is looking for a good list of beautiful words then perhaps you have come to the right place. Whenever you are describing a woman you look of some of the best words that can make her feel confident hand happy. But sometimes you get stuck with the vocabulary. It would not happen to you anymore.

We will help you with learning some adjectives that will help you to describe a beautiful woman. We have already been into the fact that “Beauty lies in the eyes of the beholder” which is a true fact. Hence we can say that everyone who could potentially have a different opinion of what the word beautiful means and what would be a beauty for them.

Beautiful Words to Express Beauty of a Women

Now we realize that this is a very subjective topic and it can be very difficult to pick out wrong and right here. So just to help you out we have come up with some really good adjectives that would be defining a beautiful woman.

1. Cute

The most common word that we hear for all girls and women. Cute is a word which means someone is very appealing and pretty in away. It can be used for a person you are usually attracted to. It is used to symbolize somebody whether in a romantic way or in a non-romantic way.

2. Adorable

The meaning of the word can be similar to that of cute, which means someone who is really pretty and quite appealing in the appearance. It can also be used to describe the way to talk about in a lighter and more playful form.

Adore as you see is a verb and means that you have a deep love and respect for someone.

3. Attractive

It is a bit strong word to describe a woman. It can also be considered as one of the most generic and objective ways to describe a woman. “Attractive” means that a person has a pleasing appearance which does not necessarily mean to denote romantic interest.

4. Exquisite

The word by definition means that something or someone which is very beautiful as well as very delicate in a refined way.

It is very similar to the word lovely. It is used when you wish to define a person’s extreme feminine beauty and shows that you are giving importance to the details.

5. Radiant

The word itself means that something which very bright and shining. It is a kind of beautiful and specifically used to describe feminine beauty. With this word, you can describe the beauty in a very light, manner full of energy.

6. Fox

By definition, it is a word that is used to describe a woman who is very attractive and with her boldness and confidence. It is her look that makes her appear wild and superior. It is a British slang word that is mostly used to describe a confident woman.

Conclusion:

The English dictionary is filled with a lot more word that can be used to describe a woman in a positive way. These are some of the sweet words that you can use for your female friends, colleagues or even your elders.

These are some of the words which can make her day. Being positive does not cost you anything so always be positive. If you can put up some more words then they are always welcomed. For more updates stay tuned to EnglishBix.

Bạn đang đọc nội dung bài viết 28 Beautiful Words For Love From Around The World trên website Beiqthatgioi.com. Hy vọng một phần nào đó những thông tin mà chúng tôi đã cung cấp là rất hữu ích với bạn. Nếu nội dung bài viết hay, ý nghĩa bạn hãy chia sẻ với bạn bè của mình và luôn theo dõi, ủng hộ chúng tôi để cập nhật những thông tin mới nhất. Chúc bạn một ngày tốt lành!